Skip to content
Advertisement

Tag: subquery

Select subquery error Subquery returns more than 1 row

Table 1 Table 2 #1242 – Subquery returns more than 1 row I am trying to get concatenated values from the other table with matching ids from this table that I have given in the foreign key like this: Edit: I changed the code: New Error:#1054 – Unknown column ‘products_brands.product_id’ in ‘on clause’ Answer Your expected result based on your

mysql query return boolean but I expect to return id

This is my query: What is wrong in this query? I’m expecting like in nested where id is compared to 108 and result will be greater than 108 but it returns boolean calling function with parameters like nextIdUserInquiry(108, $con, ‘N’); and whole function body is below and mysql error is that Call to a member function fetch_assoc() on boolean in

Advertisement