SELECT *, CASE WHEN `locality` LIKE "forester%" 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 ("forester") 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
$360,0001158 S Lakeshore RdCarsonville MI 48419View Listing
$328,000330 N Goetze RdCarsonville MI 48419View Listing
$299,000Custer Acres Rd Unit 40Port Sanilac MI 48469View Listing
$265,0002309 Black River StDeckerville MI 48427View Listing
$249,0008130 Eleventh StForestville MI 48434View Listing
$219,9002905 Walker RdCarsonville MI 48419View Listing
$210,0005325 Washington RdCarsonville MI 48419View Listing
$185,0004949 Downington RdDeckerville MI 48427View Listing
$169,9005429 N Ruth RdDeckerville MI 48427View 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