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 (44671,18042,44855,32454,18981,44884,8753,39676,18688,45042,6862,18794,18652,44835,44894,30963,17904,44767,44863,17335,37267,16935,18572,18648,13922,44854,34194,17278,6609,18894,30986,44869,44853,18301,17981,43800,44762,24412,44870,45286,44674,24411,3,17009,17703,17755,4686,17114,44856,44867,44878,44845,17492,28313,24438,44711,44531,45515,18279,17527,5993,18353,44775,44766,3883,17092,44868,5259,45567,17237)
Unknown column 'np.person' in 'where clause'