i have a query for join selection form two table when i run it on localhost xampp server it work well but in the domain server it didnt work and i cant point where is the error
here is the problem
<b>Fatal error</b>: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'LIMIT 3) AS chapname,
GROUP_CONCAT(chapters.chaptername ORDER BY chapters.cha' at line 2 in /home/vol16_1/epizy.com/epiz_29037568/htdocs/includes/functions/function.php:27
Stack trace:
#0 /home/vol16_1/epizy.com/epiz_29037568/htdocs/includes/functions/function.php(27): PDOStatement->execute()
#1 /home/vol16_1/epizy.com/epiz_29037568/htdocs/index.php(63): getnow()
#2 {main}
thrown in <b>/home/vol16_1/epizy.com/epiz_29037568/htdocs/includes/functions/function.php</b> on line <b>27</b><br />
and here is the selection query
SELECT DISTINCT novel.NovelID, novel.NovelName,novel.NovelImage,
GROUP_CONCAT(chapters.chapternumber ORDER BY chapters.chapterID DESC LIMIT 3) AS chapname,
GROUP_CONCAT(chapters.chaptername ORDER BY chapters.chapterid DESC LIMIT 3) AS chpnum,
chapters.chapterID FROM novel INNER JOIN
chapters ON novel.NovelID = chapters.NovelID AND Date(chapters.chapterDate) >= CURDATE() GROUP BY novel.NovelName