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

SELECT * FROM basket WHERE id=''

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

SELECT * FROM items WHERE id='4587'