Order.Status from Invoices where (Invoices.Invoice_Number_Short = 'F000038') and (Invoices.Delivery_Method = 'DC') and (Invoices.Shipping_Street = 'A_Street') and
(Invoices.Shipping_State = 'New York') order by Invoices.id desc limit 0,5"
}
Response code: 400 Bad Request
Response body:
{
"code": "SYNTAX_ERROR",
"details": {
"near": "where"
},
"message": "error occured while parsing the query",
"status": "error"
}
Important note: if I only leave two where criterias it works ok! Only after inserting more than 2 where criterias in the where clause it fails. Maybe I'm constructing incorrectly the query?
Can you please specify where I'm wrong in this query?