[} SELECT IF(codi_estat='NOV',1,0) AS es_novetat, FROM gntv_continguts WHERE 1 ORDER BY es_novetat DESC, hits_video ASC, data_alta DESC {] 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 'FROM gntv_continguts WHERE 1 ORDER BY es_novetat DESC, hits_video ASC, data_alta' at line 1