A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for Category::index()

Filename: controllers/category.php

Line Number: 30

Database Error

An Error Was Encountered

Error Number: 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 userName LIMIT 0, 15' at line 4

SELECT userID, userName, userSex, DATE_FORMAT(`userJDate`, '%b %D, %Y') as 'userJoinDate' FROM dcm_users WHERE catID= ORDER by userName LIMIT 0, 15