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 (30986,8753,17492,45515,18430,17657,4686,45072,18279,17278,44856,44849,44674,3,17904,44853,32454,5259,24441,18446,44875,18301,44858,5388,44767,18172,44836,18996,44671,19057,9341,18719,17601,18900,37267,16885,18427,19078,18042,17981,17092,14402,45042,44640,16935,44764,43800,18286,44768,44870,18648,13922,28530,17839,18794,17527,44866,44851,18688,17351,44531,5410,18572,44854,6875,44711,24438,45567,4765,10402)
Unknown column 'np.person' in 'where clause'