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 (44865,37267,45177,45180,13922,17755,6782,44835,45262,24441,18185,17351,14402,18652,5993,18648,18301,44868,4686,31354,4765,44762,18894,17278,6609,22509,17835,18719,30986,45286,13,44854,44689,24411,44878,45516,44870,44894,17237,36472,45567,18981,18996,17657,13988,18427,44531,44875,44764,28530,44851,39676,44687,17848,17092,32454,17335,45346,44674,37057,17981,17601,18446,18172,18794,44866,44853,5388,45051,16885)
Unknown column 'np.person' in 'where clause'