QUERY: 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 'order by date_added ASC' at line 1SELECT a.* from members_agents_map mam LEFT JOIN agents a on (mam.agent_id=a.id) where mam.member_id= order by date_added ASC array ( 'u' => 'player-coach', )array ( 'REDIRECT_STATUS' => '200', 'HTTP_HOST' => 'womensrugbyrecruitment.com', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_ACCEPT_ENCODING' => 'gzip', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_X_FORWARDED_FOR' => '54.227.126.69', 'HTTP_CF_RAY' => '3cd7e85b595b2438-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_USER_AGENT' => 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_CF_CONNECTING_IP' => '54.227.126.69', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '
Apache/2.4.7 (Ubuntu) Server at womensrugbyrecruitment.com Port 80
', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'womensrugbyrecruitment.com', 'SERVER_ADDR' => '128.199.246.97', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '172.68.65.4', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'webmaster@localhost', 'SCRIPT_FILENAME' => '/var/www/html/index.php', 'REMOTE_PORT' => '18633', 'REDIRECT_QUERY_STRING' => 'u=player-coach', 'REDIRECT_URL' => '/player-coach', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'u=player-coach', 'REQUEST_URI' => '/player-coach', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1513325229.6949999, 'REQUEST_TIME' => 1513325229, )