Query failed tyring to get the photos