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 (6782,5410,44853,44669,14402,18279,31354,17904,18900,17335,18301,28530,13988,17114,44837,45180,44687,17835,5993,44764,44866,18286,45043,44674,32454,45286,44765,18719,44856,4686,19078,17492,18981,45177,44867,24441,18427,22509,44739,44689,44835,44531,44671,44848,44875,44865,16935,44869,45516,44884,8753,45051,44878,9341,24411,18650,44766,44745,44845,17351,24412,18652,44836,45346,6609,18572,18996,30135,13425,3883)
Unknown column 'np.person' in 'where clause'