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 (44764,44873,17756,17527,13988,44711,28313,45516,45277,8753,44531,45043,17556,45177,44894,45051,44849,22509,17092,18279,14402,18794,45229,44835,45072,6862,17703,45561,17601,45180,3883,43800,44745,14622,17835,44865,45421,30963,30135,44837,17114,44878,18353,44875,44674,45518,17657,13425,45042,44870,4686,34194,32454,44861,37057,17335,39676,24441,5388,17904,45346,17848,45517,44767,17237,45515,18648,44689,45262,17009)
Unknown column 'np.person' in 'where clause'