Database Error

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 'groups.*, permissions.id AS permissions FROM groups LEFT JOIN permissions' at line 1
SELECT groups.*,
       permissions.id AS permissions
FROM groups
LEFT JOIN permissions ON (permissions.group_id = groups.id)
WHERE (groups.id = 5)
ORDER BY groups.id DESC


Array
(
    [:id] => 5
)
#0 /home/og2t/play.blog2t.net/includes/class/SQL.php(204): Query->__construct(Object(SQL), 'SELECT groups.*...', Array, false)
#1 /home/og2t/play.blog2t.net/includes/class/SQL.php(241): SQL->query('SELECT groups.*...', Array, false)
#2 /home/og2t/play.blog2t.net/includes/class/Model.php(225): SQL->select(Array, Array, Array, 'id DESC', Array, NULL, NULL, Array, Array)
#3 /home/og2t/play.blog2t.net/includes/model/Group.php(23): Model::grab(Object(Group), 5, Array)
#4 /home/og2t/play.blog2t.net/includes/model/Visitor.php(33): Group->__construct(5)
#5 /home/og2t/play.blog2t.net/index.php(16): Visitor->__get('group')
#6 {main}