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 (13922,6875,44671,18719,44766,44861,3883,44685,45051,44870,44875,44849,18894,45286,45042,34194,44762,39676,17904,18279,45262,17848,18688,18650,22509,44669,30986,44869,44837,30135,13988,18172,17981,16935,17237,45043,13,3,44853,44689,6862,44854,17009,17335,17771,18427,18237,44764,24441,4765,17657,18652,17755,14402,18286,30963,45072,17492,17278,44767,45346,45561,4686,19078,13425,5410,17756,45517,45516,18430)
Unknown column 'np.person' in 'where clause'