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 (43800,39676,30135,18894,44531,45277,24438,45421,44867,44836,32454,44851,10402,19078,44669,18430,22509,17527,45229,13425,17556,44775,17904,17492,18900,44854,16885,6875,18719,45043,36472,45051,3883,44861,17114,45518,5993,17755,18688,44856,18301,45177,18446,18996,24412,44739,45515,44853,17278,44762,24411,13922,44764,6862,13988,17981,17839,37267,18794,44685,18237,18981,3,44745,44711,8753,17092,5259,44870,44869)
Unknown column 'np.person' in 'where clause'