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 (44869,17756,3,22509,44739,44669,13,17703,44878,8753,19057,16935,44867,45517,17114,4686,24441,28530,44894,17492,18652,44836,18981,17771,44531,18794,44875,45286,44858,5388,10402,44856,44870,13988,44745,45180,44767,44868,45229,44884,6862,6609,24412,39676,18172,44765,31354,44861,18996,45516,17092,18430,17278,24411,6782,45421,5259,30135,44768,45262,44674,44689,3883,45277,44687,44851,44837,14622,45042,6875)
Unknown column 'np.person' in 'where clause'