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 (17848,18430,45277,17092,17335,37267,18688,13425,24438,18648,18172,45051,4686,44739,13922,8753,37057,45229,18446,17556,6875,30963,16885,44858,17835,17657,44848,30986,45180,45346,3883,44764,10402,18894,19078,24412,13,24411,18794,5388,18427,5993,18719,45042,17278,32454,44884,45516,44687,18286,17114,44866,44836,17009,44762,19057,17527,44835,24441,44855,44854,44894,18652,18353,18185,44856,44868,34194,44861,44669)
Unknown column 'np.person' in 'where clause'