SQL Error


Code error: 42000.

SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'u468924622_sam'@'localhost' for table `u468924622_lc1`.`categories` (SQL: SELECT parent.id, COUNT(*) AS total FROM categories AS node, categories AS parent, posts AS tPost WHERE node.lft BETWEEN parent.lft AND parent.rgt AND node.id = tPost.category_id AND tPost.country_code = :countryCode AND (tPost.verified_email = 1 AND tPost.verified_phone = 1) AND tPost.archived != 1 AND tPost.deleted_at IS NULL GROUP BY parent.id)