Fred04
Member
in my databasejoin element I filter the data
it used to work perfect but my databasejoin element no longer returns anything. I have the following warning:
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 '.idjuser = 42) ORDER BY text ASC' at line 3 SQL=SELECT DISTINCT(`company`.`id`) AS value, descr AS text FROM `company` AS `company` WHERE company.id IN (SELECT user.idcomp FROM user user.idjuser = 42) ORDER BY text ASC
the 'WHERE' is missing; why??
based on my analysis:
c9c3d0bb7224bb6aa80c6f1e6b734cf78a96f062 is the first bad commit
where company.id IN (SELECT user.idcomp
FROM user WHERE user.idjuser = {$my->id})
it used to work perfect but my databasejoin element no longer returns anything. I have the following warning:
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 '.idjuser = 42) ORDER BY text ASC' at line 3 SQL=SELECT DISTINCT(`company`.`id`) AS value, descr AS text FROM `company` AS `company` WHERE company.id IN (SELECT user.idcomp FROM user user.idjuser = 42) ORDER BY text ASC
the 'WHERE' is missing; why??
based on my analysis:
c9c3d0bb7224bb6aa80c6f1e6b734cf78a96f062 is the first bad commit