altrimenti

codice:
select P.*, (select url from wv_image where wv_image.product = P.ID limit 1) as url from wv_products as P where P.category = 1