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 '' at line 5

#0  DataQuery->Execute(SELECT c.Customer_ID

FROM customer c

JOIN customer_roles cr ON cr.Customer_ID=c.Customer_ID

JOIN customer_access ca ON ca.Access_ID=cr.Access_ID

WHERE cr.Access_ID=5 AND cr.Customer_ID=) 
   [/var/www/html/ignition/lib/classes/DataQuery.php:36]

#1  DataQuery->DataQuery(SELECT c.Customer_ID

FROM customer c

JOIN customer_roles cr ON cr.Customer_ID=c.Customer_ID

JOIN customer_access ca ON ca.Access_ID=cr.Access_ID

WHERE cr.Access_ID=5 AND cr.Customer_ID=) 
   [/var/www/html/ignition/lib/classes/CustomerSession.php:102]

#2  CustomerSession->HasRole(5) 
   [/var/www/html/media/index.php:4]