Query gave an error


 select id,Title  from binarys where joinId =  order by sortorder 

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 sortorder' at line 1