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 (6782,45072,44531,19057,44640,13988,13425,17335,18430,18427,44884,18279,44836,18648,24441,45180,37057,17848,45517,44685,44739,17756,44855,17703,18794,16935,45518,45515,18652,45516,18172,17237,24412,17351,17755,44865,6609,44835,45043,44848,17527,18353,16885,17092,39676,43800,5410,45177,44858,44851,45346,30963,45421,13922,17981,4686,17771,18894,17556,6862,44765,44878,18572,17009,28530,17278,36472,17114,8753,18996)
Unknown column 'np.person' in 'where clause'