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 (17351,17335,17755,17556,8753,44861,44640,44863,13922,17601,18719,19078,16935,44848,17009,31354,17981,6782,34194,44853,44531,18427,44674,44764,32454,18688,44835,44865,19057,18353,18042,17703,44868,44739,3883,45042,17114,44873,9341,44869,45177,28530,24412,44836,17904,45262,18652,5410,17492,18172,44768,18981,44854,45072,44875,44855,39676,44894,44766,17771,44767,18900,44884,17237,37267,18301,44856,36472,4686,45567)
Unknown column 'np.person' in 'where clause'