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 (44767,44853,44875,18185,24411,17835,18301,44865,44640,18353,17237,6782,44868,18719,8753,32454,45043,17335,13425,44711,44669,44863,30963,13988,44870,17657,17009,45180,44764,44873,5993,45286,5259,44849,28530,18652,18981,18042,13,44855,18172,16935,45346,44837,37267,18446,3883,39676,44745,6875,45177,44775,45517,44762,18430,4686,6609,22509,24441,17703,44858,44685,13922,34194,10402,30986,45042,44867,18996,14402)
Unknown column 'np.person' in 'where clause'