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 (18286,45346,45517,39676,16885,44674,17904,4686,44762,44765,44856,44867,44669,18650,18996,13922,18719,14622,37267,18446,18981,44878,14402,44685,44869,45043,5259,44848,4765,17703,30986,17278,17556,24441,44858,6609,44868,36472,18279,32454,18172,18301,31354,18688,24411,44875,17351,18185,17114,44640,44866,17601,44739,44836,24438,44861,6862,44531,45567,44835,17492,6782,44894,5993,37057,44853,44767,18652,44764,17237)
Unknown column 'np.person' in 'where clause'