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 (44739,16935,24412,45229,18286,45277,44845,36472,44866,45516,44894,45561,17278,45180,18301,37267,18430,45072,45517,39676,14622,44765,44863,17351,45051,4765,28530,28313,45262,19057,44884,17237,18650,44854,44849,44766,3883,44861,13988,44687,6609,6875,17848,30986,24438,18719,45515,45177,44768,4686,44856,18981,44640,16885,44869,18427,44762,45042,18794,24411,44851,44873,18648,18279,44855,17114,17092,45421,44764,45346)
Unknown column 'np.person' in 'where clause'