SQL Error: 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 rate_curr = 'rur' LIMIT 1)' at line 63 at /home/httpd/vhosts/topbanki.ru/httpdocs/classes/modules/loan/mapper/Loan.mapper.class.php line 460
Array ( [code] => 1064 [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 rate_curr = 'rur' LIMIT 1)' at line 63 [query] => ( SELECT c.*, r.* , b.company_name, b.company_about_name, b.company_mfo_type, b.company_logo FROM top_loan_rate as r JOIN top_loan as c ON c.loan_id = r.rate_loan_id JOIN top_company as b ON b.company_id = c.loan_company_id WHERE c.loan_id = 792 AND r.rate_proc_min = 0.14 AND rate_curr = 'rur' LIMIT 1) UNION ( SELECT c.*, r.* , b.company_name, b.company_about_name, b.company_mfo_type, b.company_logo FROM top_loan_rate as r JOIN top_loan as c ON c.loan_id = r.rate_loan_id JOIN top_company as b ON b.company_id = c.loan_company_id WHERE c.loan_id = 134 AND r.rate_proc_min = 0.14 AND rate_curr = 'rur' LIMIT 1) UNION ( SELECT c.*, r.* , b.company_name, b.company_about_name, b.company_mfo_type, b.company_logo FROM top_loan_rate as r JOIN top_loan as c ON c.loan_id = r.rate_loan_id JOIN top_company as b ON b.company_id = c.loan_company_id WHERE c.loan_id = 964 AND r.rate_proc_min = 0.50 AND rate_curr = 'rur' LIMIT 1) UNION ( SELECT c.*, r.* , b.company_name, b.company_about_name, b.company_mfo_type, b.company_logo FROM top_loan_rate as r JOIN top_loan as c ON c.loan_id = r.rate_loan_id JOIN top_company as b ON b.company_id = c.loan_company_id WHERE c.loan_id = 133 AND r.rate_proc_min = 1.50 AND rate_curr = 'rur' LIMIT 1) UNION ( SELECT c.*, r.* , b.company_name, b.company_about_name, b.company_mfo_type, b.company_logo FROM top_loan_rate as r JOIN top_loan as c ON c.loan_id = r.rate_loan_id JOIN top_company as b ON b.company_id = c.loan_company_id WHERE c.loan_id = 961 AND r.rate_proc_min = 1.50 AND rate_curr = 'rur' LIMIT 1) UNION ( SELECT c.*, r.* , b.company_name, b.company_about_name, b.company_mfo_type, b.company_logo FROM top_loan_rate as r JOIN top_loan as c ON c.loan_id = r.rate_loan_id JOIN top_company as b ON b.company_id = c.loan_company_id WHERE c.loan_id = 962 AND r.rate_proc_min = 1.60 AND rate_curr = 'rur' LIMIT 1) UNION ( SELECT c.*, r.* , b.company_name, b.company_about_name, b.company_mfo_type, b.company_logo FROM top_loan_rate as r JOIN top_loan as c ON c.loan_id = r.rate_loan_id JOIN top_company as b ON b.company_id = c.loan_company_id WHERE c.loan_id = 963 AND r.rate_proc_min = AND rate_curr = 'rur' LIMIT 1) [context] => /home/httpd/vhosts/topbanki.ru/httpdocs/classes/modules/loan/mapper/Loan.mapper.class.php line 460 )