SyntaxError: Invalid syntax

I think it’s logic error.

You can test it in console by running bench console in frappe-bench directory.
and run your code.
EX:

frappe.db.sql(""" select name from tabMeeting where from_time>='{0}' and to_time<='{1}' """.format('2018-01-01','2018-01-02'), as_list=True)

Hello @magic-overflow

upon

no error persist

it locate my existing_records

Thanks

Regards,
@Foxdemon96