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 (17351,44739,18900,17527,44869,32454,45177,44873,18794,44837,17556,45042,44858,18981,17703,44745,17835,24411,18353,44775,44671,18301,45262,44855,28530,18237,18996,45517,30963,45516,6782,45051,44894,17981,18279,18427,24438,14402,45561,17756,45072,44868,17335,44836,4765,17839,44870,44689,44711,28313,44640,44765,45515,4686,44531,37267,18652,44875,5388,17092,17848,34194,19057,18719,9341,45277,37057,44851,45286,3883)
Unknown column 'np.person' in 'where clause'