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 (43800,17237,17904,45346,5388,44836,17335,44745,18688,36472,34194,44869,3,17657,19057,44866,18981,44845,44765,30135,17839,44685,24441,44766,44884,5410,44739,24412,44870,45277,44689,18301,4765,18042,44768,44863,18172,45229,8753,44858,17527,17278,16885,17771,17848,45516,28313,45518,17492,18353,45043,44837,18648,10402,44875,44687,17835,17703,44878,44531,45042,44873,17351,18652,44853,44848,45177,44856,18996,44671)
Unknown column 'np.person' in 'where clause'