Error :select sub_cat_id from gallery_photos where 1 and photo_id='124560' : Query execution was interrupted