SELECT *, CASE WHEN `locality` LIKE "mount clemens%" AND `slide_location` = "" AND `logo_file_name` IS NOT NULL THEN 10 WHEN `slide_location` = "" AND `logo_file_name` IS NOT NULL THEN 5 END as `rank` FROM `wp_slides` WHERE st = "MI" AND (locality IN ("mount clemens") OR locality IS NULL) AND (cat IS NULL) AND name NOT IN ("home-top", "home-bot") AND (slide_file_name IS NOT NULL AND slide_file_name != "") AND (slide_location IS NULL OR slide_location = "") AND name NOT IN ("agent") AND active = 1 ORDER BY `rank` DESC LIMIT 12
[0] matching rows / [0.00 msec]
Blog ID 28
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "MI" AND (cat IS NULL) AND (slide_file_name IS NOT NULL AND slide_file_name != "") AND (slide_location IS NULL OR slide_location = "") AND active = 1 ORDER BY `rank` DESC LIMIT 12
[0] matching rows / [0.00 msec]
Blog ID 28
Blah
$3,750,00045729 GratiotMacomb Township MI 48042View Listing
$3,499,900Hall RdClinton Township MI 48038View Listing
$1,869,00019600 Westchester DrClinton Township MI 48038View Listing
$1,850,00021575 22 Mile RdMacomb Township MI 48044View Listing
$1,299,99922495 24 Mile RdMacomb Township MI 48042View Listing
$1,200,00033955 Van Dyke AveSterling Heights MI 48312View Listing
$1,200,000Ashland StHarrison Township MI 48045View Listing
$999,00034895 Jefferson AveHarrison Township MI 48045View Listing
$699,90021525 23 Mile RdMacomb Township MI 48042View Listing
$699,0005661 E 14 Mile RdSterling Heights MI 48310View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "MI" AND (cat = "lenders" OR cat IS NULL) AND (slide_file_name IS NOT NULL AND slide_file_name != "") AND (slide_location IS NULL OR slide_location = "") AND active = 1 ORDER BY `rank` DESC LIMIT 12
[0] matching rows / [0.00 msec]
Blog ID 28
Blah