SELECT * FROM coupons WHERE code='' AND exp_date>=now() AND redemptions>0

SELECT * FROM basket_address WHERE basket_id='5769692'

INSERT INTO wishlist (`id`, `date`) VALUES ('', now())

SELECT * FROM items WHERE id='5252'