Error in SQL [select *, concat(doc_date, '-', id_lesson) as fake_id from rasp where id_week = 710 and id_group= and not_for_group=0 ORDER BY doc_date, id_lesson]: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and not_for_group=0 ORDER BY doc_date, id_lesson' at line 1