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 (17492,45051,24411,17771,17092,13425,17278,44775,18650,44531,44837,18301,17839,10402,18981,44858,34194,18353,44869,6782,30986,44875,19078,45229,44868,13922,24412,44851,17904,31354,18719,18648,44855,44867,13,44711,24441,30963,45346,18446,3883,19057,45043,9341,28313,45518,6875,8753,32454,44689,14622,43800,5993,44854,44870,45042,45072,18794,45277,44863,44873,18430,37057,17756,17527,24438,17114,3,18185,44894)
Unknown column 'np.person' in 'where clause'