Warning (2): Missing argument 1 for CommentsController::index() [APP/Controller/CommentsController.php, line 342]
Notice (8): Undefined variable: id [APP/Controller/CommentsController.php, line 350]

Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY c.order LIMIT 1' at line 4

SQL Query: SELECT c.id FROM categories c WHERE c.subnetwork_id= ORDER BY c.order LIMIT 1;

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace