当我试图通过Eloquent运行查询时,我得到了一个MySQL错误。FlightController.php: $flightsToFinish = SrteFlight::whereRaw('DATEDIFF(MINUTE, NOW(), disc_time) > 15]: Syntax error or access violation:
1582 Incorrect parameter count in the call to native function 'DATEDIFF' (SQL: sel
SELECT * FROM Tbl_Players I WHERE DATEDIFF( DAY , NOW( ) , I.FirstLoginTime ) <1 LIMIT 0 , 30#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL
QList.find_by_sql("select end_time from q_lists where id = #{a.id}")ERROR 1582 (42000): Incorrect parameter count in the call to native function 'DATEDIFF'
我该怎么解决这个问题