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 V.sortID LIMIT 0, 1' at line 2
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 V.sortID LIMIT 0, 1' at line 2
[2] => SELECT SQL_CALC_FOUND_ROWS *, DATE_FORMAT(videoDate, "%M %e, %Y") AS dateFormat
FROM Video_Videos AS V WHERE prodID = ORDER BY V.sortID LIMIT 0, 1
)