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 (17114,13,44858,17848,17278,3883,4765,28313,17527,6862,24412,31354,44869,5388,18430,44875,44884,45180,44854,17092,45517,3,44863,44878,5410,44775,45561,9341,44870,18688,6782,30135,14402,17335,32454,18719,34194,44765,37057,44764,44866,18301,17556,18185,17755,28530,45177,45229,45567,16935,6609,45277,18981,44739,18572,17009,13922,44845,37267,44767,44671,17351,44762,14622,17601,45515,17835,24411,19057,4686)
Unknown column 'np.person' in 'where clause'