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 (44848,44878,19057,18430,44766,44674,44863,18719,44853,45051,24438,44861,44884,18279,44835,18572,17904,18794,45567,18237,37057,4765,44845,16935,44775,6782,18427,44867,45346,5993,14622,17092,18981,28313,44875,17351,19078,44856,44739,44836,44849,17756,44767,44851,17335,17755,17114,45229,5388,18688,18353,44869,45043,44687,31354,13922,17009,17835,45072,45515,18648,45516,44854,24441,13,44873,44669,30135,32454,9341)
Unknown column 'np.person' in 'where clause'