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 (17335,44851,45346,44689,18894,45517,44837,45277,44878,44866,44861,5259,18648,17601,45042,44856,44762,44685,17848,17839,24438,45229,45051,17092,19057,16885,44767,3883,44687,45043,18650,22509,18794,17556,44768,44858,4765,31354,45516,45567,30135,14622,9341,5410,44854,44766,18996,45286,17527,44867,14402,18430,17904,24411,44875,18446,44764,17771,44671,16935,18301,18286,44845,44868,30986,44835,18719,4686,18172,17981)
Unknown column 'np.person' in 'where clause'