Array ( ) Database Error

A Database Error Occurred

Error Number: 1064

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 'limit 1' at line 1

select sum(fee) as total from mx_order where ispay=1 and type!="online" and sid= limit 1

Filename: /opt/nginx/html/goushihui/models/common_model.php

Line Number: 109