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 (17657,45346,43800,45561,17351,17114,45043,45229,18719,45072,13988,18894,18981,17527,17848,37267,13922,44764,5993,6782,39676,44870,44869,10402,5410,44669,44739,44687,18172,14402,44865,44861,24441,17771,4686,44858,45180,44878,44851,17703,17492,18648,17237,44866,9341,45177,45518,18301,44836,6862,44894,37057,44855,44767,17278,30135,44775,18286,44854,17835,44863,28530,45567,13,44835,13425,19057,6609,17756,45515)
Unknown column 'np.person' in 'where clause'