How to use more3 than two "WHERE" clause? MYSQL ERROR
`SELECT pd_serial FROM product_details WHERE (pd_model_type=%s AND pd_model_name=%s) AND (pd_model_version=%s AND pd_model_group=%s) LIMIT 1`

Is there something wrong in this mysql query..

I am using it to do with PHP. 

ERROR:-

`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`
How to use more3 than two "WHERE" clause? MYSQL ERROR
===

`SELECT pd_serial FROM product_details WHERE (pd_model_type=%s AND pd_model_name=%s) AND (pd_model_version=%s AND pd_model_group=%s) LIMIT 1`

Is there something wrong in this mysql query..

I am using it to do with PHP. 

ERROR:-

`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`