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 (5410,18894,17703,45286,17114,18430,44835,16885,45042,44858,17755,43800,18900,44768,39676,44674,44739,14622,44878,44762,17092,9341,5993,44851,44836,17351,17904,6609,3883,4765,22509,44867,17756,18652,45346,17492,45051,45177,8753,44854,45515,45518,32454,28530,44837,36472,24438,18042,44855,13922,13,18688,5259,44870,3,18719,6782,44853,24412,44689,44894,18981,17556,24441,18427,17601,44845,17527,34194,6862)
Unknown column 'np.person' in 'where clause'