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 (44858,44855,8753,30986,17556,18042,10402,28530,45177,4765,17092,18301,6875,17703,4686,17237,18446,44711,17835,45229,18981,44687,3,18794,18652,44856,44745,45043,5410,5388,18719,45516,18286,6609,44873,45517,5993,44640,44884,44765,45567,17771,17114,31354,17848,13988,17755,44775,44861,17351,39676,44671,44845,18172,32454,45051,45277,44531,34194,44851,17839,44865,18353,18185,17492,18996,18279,44689,44837,44875)
Unknown column 'np.person' in 'where clause'