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 (45567,45516,17839,44853,44762,17556,19057,44687,17657,5259,18996,44894,39676,18719,18894,44878,37057,44669,44856,18286,45180,18237,6609,36472,44855,17237,24411,17335,18042,4765,6782,10402,44875,44866,44849,44689,44835,13425,24412,18353,5993,17527,44854,18794,13988,44845,44851,45262,45177,37267,45517,44640,44766,44745,16935,45042,43800,18279,18430,6862,19078,17755,4686,44685,45277,17114,3883,44867,30135,44858)
Unknown column 'np.person' in 'where clause'