Некорректный запрос к БД: SELECT * FROM gys_slider WHERE visible = '1' ORDER BY position ASC