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 (32454,18652,37267,44711,17848,44775,13425,14402,36472,24438,45177,18427,45518,44869,44855,19057,17335,45515,13922,43800,5993,44685,18794,44836,45262,22509,8753,17237,18446,44837,5410,18237,44739,17835,14622,45043,18648,44764,18981,6609,17839,44894,18900,17904,17756,44863,44671,45346,37057,17771,17703,18688,45567,44867,44870,18172,30963,18719,13,10402,44849,18279,17092,17278,39676,24441,44745,17981,17009,17601)
Unknown column 'np.person' in 'where clause'