SELECT *, CASE WHEN `locality` LIKE "prairie du sac%" 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 = "WI" AND (locality IN ("prairie du sac") 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 33
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "WI" 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 33
Blah
$1,600,000S10080A Highway 12Prairie du Sac WI 53578View Listing
$1,595,0009332 Spring Valley RdMazomanie WI 53560View Listing
$1,500,00010343 County Road KPMazomanie WI 53560View Listing
$1,467,440172.64 Acres Lueth RdSauk City WI 53583View Listing
$1,425,0008040 Lueth RdSauk City WI 53583View Listing
$1,395,000N4814 Owen RdMerrimac WI 53561View Listing
$1,200,000W12748 Highway 60Lodi WI 53555View Listing
$749,90010265 County Road KPMazomanie WI 53560View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "WI" 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 33
Blah