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 (17009,44861,17092,45567,44866,44875,18427,44669,18572,17904,22509,24441,17848,18172,13922,44858,4765,18981,45346,17839,17237,45180,44870,45051,13,18237,6782,44640,44739,44689,18652,44711,44865,28530,45262,18353,13425,5410,17981,3,45518,14402,24411,24412,17556,44768,45042,45516,39676,37057,18650,44869,45177,44884,44855,44851,44765,17527,17755,44853,6609,6862,18719,19057,44775,44764,17835,17492,44856,31354)
Unknown column 'np.person' in 'where clause'