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 (30135,45517,18430,43800,45567,18237,44894,44856,44851,18981,44848,44685,17527,44868,45180,6862,14622,18719,45286,18648,18688,44764,44865,44762,28530,44853,18446,44739,45042,6875,44861,17703,44765,18279,44845,44884,45516,44669,17492,44689,45421,17657,22509,44836,17114,45518,44687,18185,18172,45051,45277,18794,13425,45043,45177,44640,44866,44775,16885,4686,17848,17335,44671,18301,24438,44854,5993,44858,45346,3883)
Unknown column 'np.person' in 'where clause'