I have query like these
SELECT id,image1 image FROM product_catalog WHERE id=\'1\' AND image1<>\'\' UNION ALL SELECT id,image2 image FROM product_catal