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 (17756,17981,45517,17335,36472,18688,45518,44853,44640,44685,39676,44868,44894,17237,44875,14402,18301,18981,5993,5259,4686,45177,24411,18353,18286,16935,45421,44854,17009,30963,17657,44835,45229,18427,44687,18900,13,17904,9341,44869,44689,18894,45180,18430,45286,24412,17835,44765,44863,45277,17771,44745,44711,44764,44870,18652,44861,18648,17492,44867,45051,16885,5388,45042,3,44766,45515,17755,44767,44671)
Unknown column 'np.person' in 'where clause'