SELECT * FROM images WHERE id = 2 AND companyid =