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 (17904,18279,17771,17601,24411,44687,17755,18237,44640,18981,17237,24441,45515,17092,44884,44856,44854,18286,18185,17556,5410,13,45072,45518,44764,44835,18042,3883,44848,18430,6862,44851,44858,17835,19057,36472,17657,17527,22509,17351,17981,17839,18301,18719,17848,18652,44531,18446,19078,13425,44855,6782,44739,30963,4686,45561,18894,45421,45262,17114,14622,45346,17756,45277,17703,45286,44849,18688,44869,44894)
Unknown column 'np.person' in 'where clause'