Controller Error (category)

Message: SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'janabio_db.p.created_at' which is not in SELECT list; this is incompatible with DISTINCT

File: /var/www/html/includes/controllers/category_controller.php:73

#0 /var/www/html/includes/controllers/category_controller.php(73): PDO->prepare('\n    SELECT DIS...')
#1 /var/www/html/index.php(274): require_once('/var/www/html/i...')
#2 {main}