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 'as n_d From news where show_in_index='1' and checked='1' and lang='gb' order by ' at line 1