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 (44711,24441,44875,45277,44767,30135,17657,17755,17839,18430,8753,18894,18981,10402,44865,44856,17335,37057,45567,34194,14402,44863,45516,3883,44745,44867,36472,44837,43800,44739,5388,44861,44851,17703,45051,24411,19078,44870,44835,18185,13922,22509,18301,3,17114,28530,44853,5410,44855,45180,5993,17527,13425,44685,44768,37267,17492,44894,6862,17237,44868,45517,44640,28313,44884,45042,24438,44766,13988,44765)
Unknown column 'np.person' in 'where clause'