mysql_query (30) failed. Column 'memid' in where clause is ambiguous : 1052
Query: SELECT distinct est.id, est.special FROM premises2.realestate AS est, premises2.limages AS img where (memid='') and est.special = '1' and est.id=img.listingid AND est.postcode>0 and est.status!='sold' and est.status!='leased' AND img.imgno!='' and est.id>='6000000'
Database: premises

User Name: premises