WYJĄTEK

MySQL.class.php, linia: 82

SELECT
SQL_CALC_FOUND_ROWS `e`.`id` AS totalRows,
`e`.`id`, `e`.`id_parent`, `e`.`locked`
, `ml`.`name`,
ml.content,
`img`.`filename` AS mainImageFilename,
`imgl`.`name` AS mainImageName
FROM `a_Element` AS e
INNER JOIN `a_ExhibitorModule` AS m ON (`m`.`id_element`=`e`.`id`)
INNER JOIN `a_ExhibitorModule_lang` AS ml ON (`ml`.`id_element`=`e`.`id` AND `ml`.`id_lang`='297')
LEFT JOIN `a_Position` AS p ON (`p`.`id_element`=`e`.`id` AND `p`.`id_parent` IS NULL)

LEFT JOIN `a_RepositoryModule` AS img ON (`img`.`id_linked`=`m`.`id_element` AND `img`.`field`='imageList' AND `img`.`main`='1')
LEFT JOIN `a_RepositoryModule_lang` AS imgl ON (`imgl`.`id_element`=`img`.`id_element` AND `imgl`.`id_lang`=`ml`.`id_lang`)
WHERE `e`.`module` = 'ExhibitorModule'
AND `m`.`active` = '1' AND `m`.`deleted_at` IS NULL AND `e`.`id_parent` IS NULL AND
m.id_element != AND
ml.content != ""
GROUP BY `e`.`id`

ORDER BY RAND()
LIMIT 0, 3


#1064 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
ml.content != ""
GROUP BY `e`.`id`

ORDER BY RAND()
LIM' at line 17
#0 /home/exposweet/ftp/nowa/class/MySQL.class.php:123
MySQL->query()
#1 /home/exposweet/ftp/nowa/class/SiteList.class.php:238
MySQL->fetchQueryResults()
#2 /home/exposweet/ftp/nowa/modules/ExhibitorModule/ExhibitorModule.class.php:30
SiteList->elementsList()
#3 /home/exposweet/ftp/nowa/index.php:221
ExhibitorModule->runController()