Warning: mysql_connect(): Access denied for user 'omegares_webadmi'@'localhost' (using password: YES) in /var/www/vhosts/omegaresources.co.uk/httpdocs/classes/class.database.php on line 9
/*GET VACANCIES BY SECTOR ( renewables ) */ SELECT DISTINCT `vacancies`.*, `vacancies_sectors`.name  AS `subsector_name`,
									 `vacancies_sectors`.url  AS `subsector_url`,
									 `vacancies_sectors_1`.name  AS `sector_name`,
									 `vacancies_sectors_1`.url  AS `sector_url`,
									 `vacancies`.`id` AS `vacancy_id`									 
					  FROM    (   (   omegares_website.vacancies_sectors `vacancies_sectors`
								   INNER JOIN
									  omegares_website.vacancies_sectors `vacancies_sectors_1`
								   ON (`vacancies_sectors`.parent = `vacancies_sectors_1`.id))
							   INNER JOIN
								  omegares_website.vacancies_multi_sectors
									 `vacancies_multi_sectors`
							   ON (`vacancies_multi_sectors`.sector_id = `vacancies_sectors`.id))
						   INNER JOIN
							  omegares_website.vacancies `vacancies`
						   ON (`vacancies`.id = `vacancies_multi_sectors`.vacancy_id)
						   
						   GROUP BY `vacancies`.`id`
						   
					 HAVING (`vacancies_sectors_1`.url = 'renewables') AND (`vacancies`.status = 1) AND 
						   		(	(`vacancies`.`display_begin` < CURRENT_TIMESTAMP( )) 
						   		AND 
									(`vacancies`.`display_end` > CURRENT_TIMESTAMP( )))
					ORDER BY `vacancies`.is_sticky ASC, `vacancies`.display_begin DESC

Fatal error: Uncaught exception 'Exception' with message '1142: SELECT command denied to user 'omegawebsite2'@'localhost' for table 'vacancies_sectors'' in /var/www/vhosts/omegaresources.co.uk/httpdocs/classes/class.database.php:17 Stack trace: #0 /var/www/vhosts/omegaresources.co.uk/httpdocs/renewable-energy/index.php(361): database->query('/*GET VACANCIES...') #1 {main} thrown in /var/www/vhosts/omegaresources.co.uk/httpdocs/classes/class.database.php on line 17