All Questions
1 question
0
votes
1
answer
346
views
ORDER BY after a WHERE with a escape_string within a sql SELECT
I have the following select query, where I need to add an ORDER BY topic_id DESC. How can I add it?
$sql = "SELECT
top_id,
top_cat,
COUNT(top_id) AS topic
FROM
topics
WHERE
...