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 (44762,5259,17755,19057,13425,44845,18719,17756,6609,5388,17527,45517,45051,18996,44868,18794,18648,45515,8753,44640,44866,17114,18894,44863,44531,5993,17278,6875,44873,13988,44870,17335,45072,16935,44768,18172,13,44687,18286,44878,44689,17703,24411,45042,18981,18652,45518,45043,17839,44711,44836,44767,18650,37057,44856,45346,39676,45567,17835,44685,44766,45177,14402,44858,28313,3,18427,44894,44837,30135)
Unknown column 'np.person' in 'where clause'