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 'users_fi_code_b,users_fi_code_a) as code FROM amigos,users_fi where user_code in' at line 1