ここにクエリがあります
$query_order = "select * from orders where key = '$pay_key'";
エラー表示
SELECT
*
FROM `orders`
where `key` = 'C90320'
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 'key = 'C90320'' at line 1*