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 (19057,18719,24411,18996,44875,34194,8753,44849,44766,45567,6782,17114,44689,44866,44768,44869,18648,45043,44863,44867,18794,31354,44894,13988,45515,17556,45277,4686,17527,17601,17092,45516,17835,3883,28530,44878,5993,18981,22509,18301,24438,45517,45561,18894,45042,44868,43800,44775,17009,18430,17703,17492,18427,44762,17278,44851,14622,44739,30963,17848,44858,44640,5259,17335,17904,44836,44854,18572,13425,17237)
Unknown column 'np.person' in 'where clause'