SELECT *,c.name AS name, b.name AS test,DATE_FORMAT(a.time,'%d.%m.%Y %H:%i') as testtime FROM ".DB_LOG." a
LEFT JOIN ".DB_TEST." b ON a.id_test=b.id_test
LEFT JOIN ".DB_USERS." c ON a.id_user=c.id_user
LIMIT ".$begin.", ".$count."
Как сделать так чтобы была выборка например по id_test, находится в базе DB_LOG
An error occurred while accessing the MySQL database .
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 '.id_test=1 LEFT JOIN test b ON a.id_test=b.id_test LEFT JOIN users c' at line 1
SELECT *,c.name AS name, b.name AS test,DATE_FORMAT(a.time,'%d.%m.%Y %H:%i') as testtime FROM log a.id_test=1
LEFT JOIN test b ON a.id_test=b.id_test
LEFT JOIN users c ON a.id_user=c.id_user
LIMIT 0, 20