Aa
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 ') ORDER BY dateRaw DESC LIMIT 3' at line 3
Array
(
[0] => Error Number: 1064
[1] => 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 ') ORDER BY dateRaw DESC LIMIT 3' at line 3
[2] => SELECT *, date AS dateRaw, DATE_FORMAT(date, "%c/%e/%Y") AS date, (SELECT photoName FROM Photos AS PH
JOIN News2Photos AS NP ON PH.photoID=NP.photoID
WHERE NP.newsID=N.newsID ORDER BY PH.sortID LIMIT 1) AS photoName FROM News_News AS N WHERE postTill >= CURDATE() AND newsID IN (SELECT newsID FROM News2Facilities WHERE facilityID=) ORDER BY dateRaw DESC LIMIT 3
)