SELECT *, CASE WHEN `locality` LIKE "ridgeville%" 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 = "IN" AND (locality IN ("ridgeville") 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 25
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "IN" 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 25
Blah
$350,0001502 E Division RdPortland IN 47371View Listing
$349,0001200 E Gray LnWinchester IN 47394View Listing
$329,9001011 S Meridian StPortland IN 47371View Listing
$325,0007165 W State Road 32Farmland IN 47340View Listing
$299,9005301 W 400 NWinchester IN 47394View Listing
$299,9005301 W 400 Rd NWinchester IN 47394View Listing
$299,900446 S Western AveWinchester IN 47394View Listing
$295,0005369 W 350 Rd SPortland IN 47371View Listing
$275,0003611 N US 27 HwyWinchester IN 47394View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "IN" 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 25
Blah