Simplify album query SQL code to make it compatibly with MySQL.