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 (18279,18427,44766,44836,45516,45177,45515,44855,44878,44768,14622,5993,44848,34194,44685,22509,45518,18042,44858,44851,28313,6609,18900,44765,5259,44853,17092,44875,17278,17848,32454,44884,44689,45517,14402,18894,44835,18430,18996,5388,17335,44764,17703,17771,17009,24412,18981,17237,18572,45346,44861,18794,17981,44849,18688,44856,17114,44867,24438,44711,45180,30986,44863,44669,3883,44762,24441,43800,44845,37267)
Unknown column 'np.person' in 'where clause'