Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (6782,45043,44836,44845,44878,17556,43800,14402,45229,44856,18279,44711,44867,45515,4765,18981,45072,44861,17848,17335,44669,44869,24412,44762,10402,44685,34194,18719,44854,37267,44870,16885,45567,17904,44745,44863,44765,28530,44766,30135,44775,13988,44674,18427,44894,18446,18237,9341,30986,18900,18042,17601,45262,44687,44689,18301,45180,17839,13425,4686,30963,5259,17703,32454,45518,6875,37057,6609,24441,3883)
Unknown column 'np.person' in 'where clause'