[typo] revisiting recent articles sidebar (argh!)

Scott Laird scott at sigkill.org
Mon Aug 15 20:25:09 EDT 2005

On Aug 15, 2005, at 5:19 PM, Kyle Cooney wrote:

> Hey all -
> I'm about to pull my hair out on this subject.  I have the sidebar  
> that Justus was kind enough to share on this list(and I've also  
> tried making the adjustments Scott recommended).  But I keep  
> recieving Application Error(rails) messages.  I checked my  
> production.log file and have come up with the following error message:
> ActiveRecord::StatementInvalid (You have an error in your SQL  
> syntax; check the manual that corresponds to your MySQL server  
> version for the right syntax to use near '== 1 ORDER BY created_at  
> DESC  LIMIT 5' at line 1: SELECT * FROM articles WHERE published ==  
> 1 ORDER BY created_at DESC  LIMIT 5):

Try using = not == in SQL.


More information about the Typo-list mailing list