SELECT *, CASE WHEN `locality` LIKE "oneida%" 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 ("oneida") 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
$3,300,0004479 Heritage HtsDe Pere WI 54115View Listing
$2,650,0003379 Lost Dauphin RdDe Pere WI 54115View Listing
$1,950,0005472 Sportsman DrDe Pere WI 54115View Listing
$1,700,0001750 Limestone TrlDe Pere WI 54115View Listing
$1,574,9001708 Hawthorne Heights DrDe Pere WI 54115View Listing
$1,450,0003200 Monroe RdDe Pere WI 54115View Listing
$1,350,0004359 Eagle Landing CtDe Pere WI 54115View Listing
$969,9004194 Blackberry Ridge DrOneida WI 54155View Listing
$949,9004668 Terra View TrlDe Pere WI 54115View Listing
$874,9005454 County Rd WDe Pere WI 54115View Listing
$799,9003223 Lost Dauphin Rd Lot 1De Pere WI 54115View 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.01 msec]
Blog ID 33
Blah