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 (16935,44873,44854,16885,17839,44863,3883,44845,18981,5993,44689,44836,39676,18648,18572,18794,44767,30135,18900,18719,24441,3,44685,44870,45516,44868,45515,44849,17092,6782,44865,44869,18185,44858,17009,45421,44867,18301,28313,13922,44766,28530,44856,45286,5259,13988,45043,14622,44894,45177,17848,44764,24412,18237,17335,44711,9341,44855,43800,17556,18279,13,44848,37057,45518,17755,44884,18427,18172,24411)
Unknown column 'np.person' in 'where clause'