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 (44845,43800,44640,17755,44851,24412,45567,6782,45180,17771,18353,17237,3,45277,24411,17492,45177,44894,44858,5410,18719,34194,44856,17601,18650,10402,44853,17527,18996,5259,13425,44865,44836,22509,30986,17009,5388,36472,17556,13988,44870,44768,45072,44531,6875,45561,16935,18794,9341,18652,32454,44766,5993,3883,18427,17335,37057,18279,44671,19057,17703,45051,44873,44837,44669,4765,24438,44867,39676,6862)
Unknown column 'np.person' in 'where clause'