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 (8753,44685,17835,45277,17756,19078,17278,44687,17492,5993,24438,13,17848,30963,18794,18650,17114,17981,18981,5388,44835,3,5259,6862,14402,39676,44870,17601,6782,45561,44848,14622,45286,17755,17237,45229,13425,44854,45515,44865,45567,18286,44765,18688,18279,44867,45516,44875,30986,18652,18996,36472,44767,17556,31354,44766,44873,34194,44863,22509,45517,17092,24441,4686,44845,18042,44745,44849,45346,44711)
Unknown column 'np.person' in 'where clause'