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 (44855,44884,44856,44745,18042,44768,4686,45516,45180,6782,37267,44878,18185,18172,45051,13425,17601,30986,18286,44767,18279,24441,45042,17335,44858,13988,5388,34194,44873,14402,18427,14622,44739,44531,44848,45346,44870,45517,18996,45518,18894,17904,17556,44685,44687,18572,45229,45561,22509,9341,8753,44775,17981,18794,32454,44764,44837,31354,28313,44866,18648,17756,44689,18353,18650,36472,44867,44766,44863,16935)
Unknown column 'np.person' in 'where clause'