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 (16885,17527,45051,44531,45043,18286,6875,18652,18981,44689,18172,45518,13922,44863,45561,45262,31354,30986,45042,6782,44875,18794,17703,44669,22509,37057,24412,8753,17351,9341,44836,44739,6862,18894,39676,18430,17237,44870,24438,5388,17335,44768,44865,18719,17114,18900,44766,44835,30963,18042,45515,44674,44775,5410,37267,13,18237,45180,10402,3883,44858,44767,34194,17755,44861,44685,4686,17839,18572,44853)
Unknown column 'np.person' in 'where clause'