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 'GROUP BY a.id
ORDER BY a.date_add DESC
LIMIT 3' at line 10
SELECT a.*,
a.descr_shot as descr_shot,
a.name as name,
a.html as html,
akt.name as akcii_type_name
FROM akcii_global a
LEFT JOIN akcii_type akt ON akt.id = a.akcii_type_id
WHERE a.status = 1
AND a.id !=
GROUP BY a.id
ORDER BY a.date_add DESC
LIMIT 3