Fatal Error:
SELECT n.id, n.data, n.pavadinimas, n.num_data, n.anotacija , COUNT(k.id) as kom_sk FROM an_straipsniai as n LEFT JOIN an_komentarai as k ON (n.id=k.straipsnio_id AND k.tipo_id=1) WHERE n.num_data<="666-12-31" AND n.num_data>"666-00-00" AND n.numeris= AND n.publikuoti=1 AND viesas=1 AND temos_id=0 GROUP BY n.id ORDER BY n.data DESC
DBError #1064: 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 'AND n.publikuoti=1 AND viesas=1 AND temos_id=0 GROUP BY n.id ORDER BY n.data ' at line 7
in Engine