Try to put semicolon
at the end of your query.
SELECT topics.*, users.username, users.profilepic, catogories.name
FROM topics
INNER JOIN users ON topics.user_id = users.id
INNER JOIN catogories ON topics.catogory_id = catogories.id
ORDER BY create_date DESC;
18
solved how i can resolve this error as i m new to PHP and MySQL kindly help me out