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 (44835,6862,18172,17335,13425,31354,17756,44685,45042,44766,9341,18353,44836,44858,17904,45346,18237,5410,44848,19078,17703,17009,45561,44894,17237,6609,17092,18981,6782,17556,17981,18279,18572,44687,3883,17839,17527,17351,44866,45262,18688,18185,18427,44689,18042,14622,45517,44849,45421,44884,44674,32454,16935,18794,30963,44863,18652,44775,44764,44640,4686,43800,45518,24412,45286,44875,44867,44868,34194,18650)
Unknown column 'np.person' in 'where clause'