SELECT *, CASE WHEN `locality` LIKE "alba%" 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 ("alba") 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
$425,0005683 Scholl RdMancelona MI 49659View Listing
$325,0009259 SE LimitsMancelona MI 49659View Listing
$299,99910405 Bailey RdMancelona MI 49659View Listing
$259,0007465 N Maple AveMancelona MI 49659View Listing
$224,9008162 NE Joes RdMancelona MI 49659View Listing
$209,9005301 S # US131Mancelona MI 49659View Listing
$178,0008282 Cinder Hill RdMancelona MI 49659View Listing
$155,9006235 NE Covert RdMancelona MI 49659View Listing
$120,0004928 Star Chief TrlMancelona MI 49659View Listing
$75,0008184 Red Pine Dr NEMancelona MI 49659View Listing
$70,0006325 S M 66 HwyMancelona MI 49659View 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