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 (45517,6862,45229,44867,17556,6782,17092,45516,5388,6875,44764,45561,17009,37057,34194,31354,4765,14622,44689,18650,45051,44837,18572,44671,17237,10402,18719,18900,44674,44869,3883,17904,44853,44868,19078,18996,17492,17114,18237,45286,17771,22509,44845,39676,44855,18794,44762,17839,44894,18430,18652,44858,44870,17981,17335,18981,45421,13922,44765,44739,36472,45277,44854,17351,44861,44863,24411,45346,24441,17835)
Unknown column 'np.person' in 'where clause'