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 (18042,44854,17237,13922,17556,18894,45177,39676,44531,45518,44775,44764,45517,44837,17703,17756,17351,45421,18301,44884,18430,44849,17981,5993,37057,6782,45515,44853,18981,18572,3883,18237,17839,43800,17755,14622,44767,17092,14402,18688,17335,13,44869,44711,44870,45262,44640,32454,28530,44766,45229,45346,17848,17657,45561,44878,45286,17904,18353,17492,18719,17278,44739,45042,19057,44671,37267,28313,44745,18794)
Unknown column 'np.person' in 'where clause'