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 (17839,18446,44861,10402,45229,14402,17237,45177,17848,44869,24411,18430,44868,18652,18894,13425,5993,18301,44767,30963,14622,17351,45561,3883,34194,44870,30986,17092,5259,45567,44856,44855,18427,44884,45051,39676,13922,17601,44764,28530,9341,24412,24441,17904,44765,36472,44762,30135,44531,43800,17981,45043,45277,6782,17009,45286,17835,19057,44768,5410,18353,18719,17492,24438,44674,17703,44835,44866,18650,18286)
Unknown column 'np.person' in 'where clause'