Notice: Trying to get property of non-object in /var/www/vhosts/brick.org.uk/httpdocs/index.php on line 901

The query could not be executed.

Query:
select * from bda_entrants where award_id = and entrant_year = '2007' order by entrant_winner desc

DB returned following error message:

Error number: 1064

Error message: 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 entrant_year = '2007' order by entrant_winner desc' at line 1


Notice: Trying to get property of non-object in /var/www/vhosts/brick.org.uk/httpdocs/index.php on line 902

Notice: Trying to get property of non-object in /var/www/vhosts/brick.org.uk/httpdocs/index.php on line 911
2007

2007