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,18648,45043,13,18427,19057,24411,44866,17756,18572,44845,45567,3,18430,18688,18446,18237,4686,9341,44775,17237,8753,44858,3883,44669,18185,45346,45561,17904,44765,18794,44865,45072,44835,5388,44869,44674,44868,43800,44848,24441,45518,18279,17835,18172,45516,44854,28313,6609,39676,37057,18894,44861,18652,44894,45180,13922,17527,18301,30135,18719,6875,4765,44873,44875,18981,44766,17848,45421,5410)
Unknown column 'np.person' in 'where clause'