I have table named store_products in my DB.
Below Query Returns me 1
SELECT u_id FROM store_products WHERE p_id=1
I want to Get Company Details Using Above Return 1 with that Query.
So I wrote Below Query But It's not working for me.
SELECT * FROM reg_companies WHERE u_id = ('SELECT u_id FROM store_products WHERE p_id=1')
Kindly Help Me.