SELECT *, CASE WHEN `locality` LIKE "warrenton%" 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 = "OR" AND (locality IN ("warrenton") 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 56
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "OR" 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 56
Blah
$995,00089899 Manion DrWarrenton OR 97146View Listing
$975,00089742 Ocean DrWarrenton OR 97146View Listing
$950,00088786 Lewis and Clark RdAstoria OR 97103View Listing
$950,00088786 Lewis and ClarkAstoria OR 97006View Listing
$795,90090627 Lazy Creek RdAstoria OR 97103View Listing
$750,00092402 Abbott RdAstoria OR 97103View Listing
$730,000Adj 91906 Lewis and Clark RdAstoria OR 97103View Listing
$639,00088089 Highway 202Astoria OR 97103View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "OR" 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 56
Blah