MySQL Error

Wystąpił błąd podczas wykonywania zapytania SQL!
MySQL said: 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 d WHERE p.visible = 't' AND p.grupa = 0 AND p.info_id = d.id ORDER BY p.disp' at line 1