{
* code: "42000",
* file: "C:\xampp\htdocs\hao2\dmxConnectLib\lib\db\Connection.php",
* line: 54,
* message: "SQLSTATE[42000]: Syntax error or access violation: 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 '))' at line 1",
* trace: "#0 C:\xampp\htdocs\hao2\dmxConnectLib\lib\db\Connection.php(54): PDO->prepare('SELECT * FROM `...') #1 C:\xampp\htdocs\hao2\dmxConnectLib\modules\dbconnector.php(67): lib\db\Connection->execute('SELECT * FROM `...', Array) #2 C:\xampp\htdocs\hao2\dmxConnectLib\lib\App.php(159): modules\dbconnector->select(Object(stdClass), 'query1') #3 C:\xampp\htdocs\hao2\dmxConnectLib\lib\App.php(128): lib\App->execSteps(Object(stdClass)) #4 C:\xampp\htdocs\hao2\dmxConnectLib\lib\App.php(98): lib\App->execSteps(Array) #5 C:\xampp\htdocs\hao2\dmxConnectLib\lib\App.php(71): lib\App->exec(Object(stdClass)) #6 C:\xampp\htdocs\hao2\dmxConnect\api\test\AA.php(8): lib\App->define(Object(stdClass)) #7 {main}"
}
I think you are almost there, set a repeat step after query2 and use the expression as query2, add query1 inside the repeat and set the condition to {{query2.urun_id}}
So the logic here is that the first query needs a repeat to run through every single record of the query then pass all records found to the secondary query in order to check the condition.
have you already tried with a repeat already? Without it the secondary query has no way to get all the records, only one record, it needs more than one record to create an array, so if it only had one then maybe it can not create the array correctly, I think it might be at least worth a try, it might surprise you.
Well I am glad the first part seems to be working now without the syntax error anymore, for the in or not in issue, can you show me the contents of both of your queries urunler and rezervasyonlar
Thanks @mrbdrm, do you know if he only needs to access a single record, I wasn’t sure, if he only needs the one then I agree that it would not need the repeat.