Query: select User_ID, Message_ID, fio, text, DATE_FORMAT(Created,'%Y') AS year, DATE_FORMAT(Created,'%m') AS month, DATE_FORMAT(Created,'%d') AS day from Message75 where Checked=1 and Message_ID= order by Priority desc limit 1
Error: 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 Priority desc limit 1' at line 1
Query: select User_ID, Message_ID, fio, text, DATE_FORMAT(Created,'%Y') AS year, DATE_FORMAT(Created,'%m') AS month, DATE_FORMAT(Created,'%d') AS day from Message75 where Checked=1 and Message_ID= order by Priority desc limit 1
Error: 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 Priority desc limit 1' at line 1