ErrorNo: 1064, Message:Database error while executing: 'SELECT xar_dd_itemid , MAX(CASE WHEN xar_dd_propid = 188 THEN xar_dd_value ELSE '' END) AS dd_188
FROM egn_dynamic_data
WHERE xar_dd_propid IN (188)
GROUP BY xar_dd_itemid HAVING dd_188 = '; error description is: '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 '' at line 4'.
A database query could not be executed, either because the query could not be understood or because it returned unexpected results.