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 (17771,44884,17756,44851,45518,17237,18719,44861,32454,13425,17848,18572,44870,45051,9341,28530,44767,45043,5388,18237,44867,44835,4765,45286,44689,44894,44863,18301,14402,37057,45346,5993,45421,17904,24441,44845,13922,6609,45180,30963,45229,44687,16935,18652,45515,18042,18648,4686,44640,44856,8753,24412,18279,44764,17492,30135,17755,17981,18430,44739,31354,24411,44868,34194,44762,18900,44873,44711,44531,18185)
Unknown column 'np.person' in 'where clause'