cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MySQLSyntaxErrorException: Unknown column 'session.salesApplication' in 'where clause'

0 Likes
363

I have a requirement to apply a restriction on Products that if a particular customer with a with a specific authentication hits product by product endpoint , provide them products(approved or unaproved)". I have set "salesApplication" attribute in session and created search restriction query like {approvalStatus} = Approved or ({approvalStatus} = UnApproved and IN (?session.salesApplication))

while hitting the endpoint i am getting error MySQLSyntaxErrorException: Unknown column 'session.salesApplication' in 'where clause'

Any suggestion will be helpful.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Anurag, Could please check your query something wrong i think the both "AND IN" will not come one after another before "IN" you missed some attribute name

thanks , prabhakar