DELETE projects, images FROM projects, images WHERE projects.p_id = ? AND projects.p_id = images.p_id;