SELECT id from forum
WHERE group_id= AND table_name LIKE "forumgal" 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 table_name LIKE "forumgal"' at line 2
SELECT *,user.nev from forum
join user on(user.id=forum.userid)
WHERE group_id= AND table_name LIKE "forumgal"
ORDER by datum DESC 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 table_name LIKE "forumgal"
ORDER by datum DESC' at line 3
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 table_name LIKE "forumgal"
ORDER by datum DESC LIMIT 0,12' at line 3