Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/jpmjo/public_html/includes/database.php on line 56
SELECT	`dpu_comities`.*
						,(select count(*) FROM deputy_comity WHERE deputy_comity.comity_id=`dpu_comities`.id) as `count`
				FROM	`dpu_comities` 
				WHERE	(`type`="Permanent" OR `type`="" OR `type` is NULL)  AND `dpu_comities`.`big_round`=
				ORDER BY HEX(`dpu_comities`.title) 

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 'ORDER BY HEX(`dpu_comities`.title)' at line 5<\pre>
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/jpmjo/public_html/includes/database.php on line 56
SELECT `dpu_comities`.* 
						,(select count(*) FROM deputy_comity WHERE deputy_comity.comity_id=`dpu_comities`.id) as `count`
						FROM `dpu_comities` 
						WHERE (`type`="Temporary")  AND `dpu_comities`.`big_round`=
				ORDER BY HEX(`dpu_comities`.title) 

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 'ORDER BY HEX(`dpu_comities`.title)' at line 5<\pre>
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/jpmjo/public_html/includes/database.php on line 56
SELECT `dpu_comities`.*
						,(select count(*) FROM deputy_comity WHERE deputy_comity.comity_id=`dpu_comities`.id) as `count`
						FROM `dpu_comities` 
						WHERE (`type`="Special")  AND `dpu_comities`.`big_round`=
				ORDER BY HEX(`dpu_comities`.title) 

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 'ORDER BY HEX(`dpu_comities`.title)' at line 5<\pre>
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/jpmjo/public_html/includes/database.php on line 56
SELECT `dpu_comities`.*
						,(select count(*) FROM deputy_comity WHERE deputy_comity.comity_id=`dpu_comities`.id) as `count` 
						FROM `dpu_comities` 
						WHERE (`type`="Office")  AND `dpu_comities`.`big_round`=
				ORDER BY HEX(`dpu_comities`.title) 

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 'ORDER BY HEX(`dpu_comities`.title)' at line 5<\pre>
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/jpmjo/public_html/includes/database.php on line 56
			SELECT count(distinct xxx.id) as `count` FROM dpu_deputies as xxx where xxx.id not in (
				select deputy_id FROM deputy_comity, dpu_comities 
				WHERE deputy_comity.comity_id=`dpu_comities`.id
				#AND `dpu_comities`.big_round ="0" AND `dpu_comities`.small_round ="57"
				AND ( `dpu_comities`.`type`="Permanent"  OR `dpu_comities`.`type`="" OR `dpu_comities`.`type` is NULL )
				 AND `dpu_comities`.`big_round`=
				)
			AND xxx.`big_round` = "0"

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 ')
			AND xxx.`big_round` = "0"' at line 7<\pre>