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 (3883,4765,18042,45277,17237,44867,44669,17848,44878,18353,34194,44835,13922,44870,17703,17755,44851,45567,18894,45180,17556,44845,17351,44861,18688,24441,6782,45517,45421,18286,44836,5259,44856,43800,18301,30986,44868,44767,18900,18446,18652,6875,18185,18648,17278,18237,44875,44884,45286,44894,44762,44869,37267,44873,28530,44764,45229,44766,8753,17335,5993,45043,44863,44745,17839,44687,45177,24411,14402,45262)
Unknown column 'np.person' in 'where clause'