Database error: rowCount

Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-space' and fb_links.active = '1' ORDER BY fb_tags_relationships...' at line 1 File: /home/u730435691/domains/fabayo.com/public_html/assets/class/DB.php (Line 61) #0 /home/u730435691/domains/fabayo.com/public_html/assets/class/DB.php(61): PDOStatement->execute(NULL) #1 /home/u730435691/domains/fabayo.com/public_html/assets/class/functions.php(9): DB->rowCount('SELECT\r\n ...') #2 /home/u730435691/domains/fabayo.com/public_html/assets/class/paging.php(11): getCount('SELECT\r\n ...') #3 /home/u730435691/domains/fabayo.com/public_html/assets/html/masonary/page.php(123): paging->__construct('SELECT\r\n ...', 1, 15, '/tags/soalr-pos...') #4 /home/u730435691/domains/fabayo.com/public_html/assets/class/functions.php(15): require_once('/home/u73043569...') #5 /home/u730435691/domains/fabayo.com/public_html/assets/html/template.php(4): getHtml('masonary/page.p...') #6 /home/u730435691/domains/fabayo.com/public_html/assets/class/functions.php(15): require_once('/home/u73043569...') #7 /home/u730435691/domains/fabayo.com/public_html/assets/class/functions.php(20): getHtml('template.php', 'masonary/page.p...') #8 /home/u730435691/domains/fabayo.com/public_html/index.php(4): getTemplate('masonary/page.p...') #9 {main}