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 (3,18427,44868,17771,28313,17756,6782,44768,18572,18719,44711,43800,10402,44845,18446,18279,45516,44765,17278,17335,44863,44856,44884,44836,45561,44858,24438,6609,44894,5993,45567,18900,17237,44854,22509,5259,45518,44870,24411,19078,18894,18996,45051,17492,17657,18286,44835,30135,13988,17904,18688,44674,17981,44531,5410,31354,17092,44853,18652,17848,45043,44878,45180,18981,44745,18042,17351,17114,3883,44869)
Unknown column 'np.person' in 'where clause'