SELECT DISTINCT title, template
FROM lu_template
WHERE title IN('navbar','header','footer','css','headinclude','rightside','tabbar','STATIC','ad_rightsidebar','ad_footer','ad_leaderboard','footerinclude','topmenu','sidebar_login','sidebar_usercp','laddertitle','ladderbit','ladder','block','sidebar','extrabar','topbar','headermenu','headerinclude','MESSAGE')
AND (styleid='1' OR styleid='1')
ORDER BY styleid DESC| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|---|
| 1 | SIMPLE | lu_template | ALL | title | | | | 96 | Using where; Using temporary; Using filesort |