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 (44836,18172,30963,18652,17981,18981,5993,18794,5388,17771,18427,44855,44868,28313,8753,44851,44873,17657,3883,34194,17703,44762,44764,45286,17904,30135,39676,44858,45177,36472,18301,13,44865,24441,45180,18650,14402,18185,44884,44745,14622,18286,45421,45229,32454,45517,44765,17601,44849,18688,44767,17009,17756,45042,4686,13425,6875,17237,19057,44845,18042,5259,45346,9341,44870,17835,43800,45516,45561,17335)
Unknown column 'np.person' in 'where clause'