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 (45421,17601,18353,24438,44861,44870,3883,3,17981,18185,17703,44858,6862,45516,5993,37267,9341,17009,44745,31354,45277,45051,44687,44845,14622,44669,8753,4686,18648,19057,17527,18286,44865,44685,45229,17237,44856,18652,45517,44849,17848,30135,6875,17755,44863,19078,45177,18430,44689,44762,17092,18719,13988,30963,43800,18900,18650,18996,22509,17657,24411,45180,36472,44866,30986,44867,17278,10402,18572,45043)
Unknown column 'np.person' in 'where clause'