SELECT *, CASE WHEN `name` LIKE "LEXINGTON%" AND `sub_cat` IS NULL AND `cat` IS NULL AND `locality` = "LEXINGTON" AND `logo_file_name` IS NOT NULL THEN 10 WHEN `sub_cat` IS NULL AND `cat` IS NULL AND `locality` = "LEXINGTON" AND `logo_file_name` IS NOT NULL THEN 2 WHEN `sub_cat` IS NULL AND `cat` IS NULL AND `locality` = "LEXINGTON" AND `logo_file_name` IS NULL THEN 1 WHEN `sub_cat` IS NULL AND `cat` IS NULL AND `locality` IS NULL AND `logo_file_name` IS NULL THEN 0 END as `rank` FROM `wp_37_slides` WHERE (locality IN ("LEXINGTON") OR locality IS NULL) AND (cat IS NULL) AND name NOT IN ("home-top", "home-bot") AND active = 1 ORDER BY `rank` DESC LIMIT 12 [8] matching rows / [0.00 msec] Blog ID 37 Blah

Lexington

The best things to do in Lexington, top professionals, and exclusive Lexington real estate for sale.

Easily navigate to the best places to visit in Lexington. Explore the area via breathtaking pictures and videos from your desktop. Check out the latest events in Lexington from your mobile device. Plan weekend trips with a few clicks or screen taps.

Ready to start exploring Lexington? EXPLORE NOW

SELECT *, CASE WHEN `name` LIKE "LEXINGTON%" AND `sub_cat` IS NULL AND `cat` IS NULL AND `locality` = "LEXINGTON" AND `logo_file_name` IS NOT NULL THEN 10 WHEN `sub_cat` IS NULL AND `cat` IS NULL AND `locality` = "LEXINGTON" AND `logo_file_name` IS NOT NULL THEN 2 WHEN `sub_cat` IS NULL AND `cat` IS NULL AND `locality` = "LEXINGTON" AND `logo_file_name` IS NULL THEN 1 WHEN `sub_cat` IS NULL AND `cat` IS NULL AND `locality` IS NULL AND `logo_file_name` IS NULL THEN 0 END as `rank` FROM `wp_37_slides` WHERE (locality IN ("LEXINGTON") OR locality IS NULL) AND (cat IS NULL) AND (name = "home-bot") AND active = 1 ORDER BY `rank` DESC LIMIT 20 [18] matching rows / [0.00 msec] Blog ID 37 Blah