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 (18652,44835,4765,18042,45346,44739,17771,17335,18446,44671,44764,44837,6862,18279,44856,17527,17848,45229,45567,44870,36472,18981,44767,17981,44711,32454,24441,5388,17556,44884,44875,19078,44894,28530,17703,18427,10402,22509,6875,3883,16885,44853,19057,17904,17839,44768,45561,44687,44775,44765,18237,44849,45043,44866,6609,13922,18894,39676,18688,45051,44863,24411,37267,13,5410,9341,6782,14402,30986,44851)
Unknown column 'np.person' in 'where clause'