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 '' at line 1
SELECT * FROM competitions WHERE CompID =

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/kielecka/www/engine/db.inc on line 31
 , /
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 Season = AND AgeCategory = AND Type = '' ORDER BY Season DESC, `Group`' at line 1
SELECT * FROM competitions WHERE (Region IS NULL OR REGION = "") AND Level = AND Season = AND AgeCategory = AND Type = '' ORDER BY Season DESC, `Group`

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/kielecka/www/engine/competition.inc on line 255
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 Type = '' ORDER BY Season DESC' at line 1
SELECT * FROM competitions WHERE (Region IS NULL OR REGION = "") AND ((Level = 0 AND Season < 2008) OR (Level = 1 AND Season >= 2008)) AND (`Group` IS NULL OR `Group` = 1) AND AgeCategory = AND Type = '' ORDER BY Season DESC

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/kielecka/www/engine/competition.inc on line 236
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 COALESCE(m.Date, r.Date) > '2014-10-31 15:01:15'' at line 4
SELECT MIN(COALESCE(m.Date, r.Date)) AS Date FROM matches m INNER JOIN rounds r ON m.RoundID = r.RoundID WHERE r.CompID = AND COALESCE(m.Date, r.Date) > '2014-10-31 15:01:15'

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/kielecka/www/engine/db.inc on line 36
Ostatnie spotkania
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 COALESCE(m.Date, r.Date) < '2014-10-31 15:01:15'' at line 4
SELECT MAX(COALESCE(m.Date, r.Date)) AS Date FROM matches m INNER JOIN rounds r ON m.RoundID = r.RoundID WHERE r.CompID = AND COALESCE(m.Date, r.Date) < '2014-10-31 15:01:15'

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/kielecka/www/engine/db.inc on line 36

Fatal error: Call to a member function ToSql() on a non-object in /home/kielecka/www/engine/competition.php on line 117