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

The query could not be executed.

Query:
select * from bda_entrants where award_id = and entrant_year = '2006' 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 = '2006' 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 756

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

2006