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 (44870,44861,44865,39676,44867,18894,17771,14402,17756,22509,44884,44851,44866,13,44837,17527,44848,5259,44873,18279,45051,37267,45286,17351,45421,5410,44854,14622,17114,18185,13922,17848,18996,44765,18286,6862,18652,18427,9341,45567,44858,18172,44775,5388,17839,45043,44836,30135,18042,19057,45277,3883,44863,18430,17237,30963,45561,24411,44674,44764,45346,44853,44745,45518,18900,17556,44768,18981,44669,24438)
Unknown column 'np.person' in 'where clause'