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 (44870,17492,18652,44856,18430,19057,44865,18572,44866,44855,6875,18042,44848,16885,16935,8753,18301,44775,24411,13922,19078,44767,45518,18185,44869,18446,17092,44711,18650,45072,45515,31354,44837,30963,14622,37057,44531,44836,17848,44878,18648,44851,18981,18996,18237,5259,17335,45043,17601,45517,17904,44853,44765,13425,44849,30986,44873,17237,3,17756,14402,18427,22509,44835,34194,18688,18894,39676,45042,17835)
Unknown column 'np.person' in 'where clause'