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 (17237,17755,8753,44671,16935,18794,45043,22509,6862,44765,44674,18185,44863,3883,17114,18688,17351,18996,44767,16885,45515,19057,5259,44868,44836,37057,18301,39676,18648,44878,45567,17839,45518,14402,44762,14622,10402,37267,44875,17703,6875,17835,13922,44845,44851,4686,44849,17527,5388,45346,44866,44669,45517,17278,44711,44764,44870,44739,44685,45516,44768,18042,45180,24438,45286,28530,17981,44766,17335,45072)
Unknown column 'np.person' in 'where clause'