SELECT *, CASE WHEN `locality` LIKE "corona de tucson%" 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 = "AZ" AND (locality IN ("corona de tucson") 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 17
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "AZ" 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 17
Blah
$1,249,5009068 E Mesquite View PlVail AZ 85641View Listing
$1,200,00015451 E Tumbling J Ranch PlVail AZ 85641View Listing
$998,00014673 E Sands Ranch RdVail AZ 85641View Listing
$950,00014589 E Sands Ranch Rd Unit 194Vail AZ 85641View Listing
$949,90018537 S Ava Ridge PlVail AZ 85641View Listing
$899,99513890 S Old Sonoita HyVail AZ 85641View Listing
$899,9008639 S Sun Bar Ranch PlVail AZ 85641View Listing
$899,00013406 S Rockhouse Canyon TrlVail AZ 85641View Listing
$869,90016311 S Creosote View LnVail AZ 85641View Listing
$849,9008186 S Diamond H Ranch PlVail AZ 85641View Listing
$825,00014398 E Sands Ranch RdVail AZ 85641View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "AZ" 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 17
Blah