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 (44531,44671,5259,18430,17114,44869,18427,44866,17904,18353,28530,13922,44851,17839,18237,6875,44836,18719,44865,4765,44855,18185,24411,17703,44775,44764,45072,43800,45043,45517,44894,30986,17981,44863,44875,14622,17278,17335,18900,17756,44858,18172,44856,45262,24438,44689,13,18446,18286,44845,16885,44873,45051,17848,44870,18648,5993,44837,44765,34194,37057,44687,6609,45042,19078,44669,45346,18652,44711,36472)
Unknown column 'np.person' in 'where clause'