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 'AND sections.active = 1' at line 5
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/joyntven/public_html/inc/generate_sections.php on line 22

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/joyntven/public_html/inc/generate_sections.php on line 46
Joynt Venture
No sections for the given page ID.
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 'AND active = 1 ORDER BY position ASC' at line 3
SELECT * FROM sections WHERE id = AND active = 1 ORDER BY position ASC