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 (6609,17835,13,44870,30963,17237,44868,5388,44764,44739,44768,17335,28530,18042,17756,34194,18572,18172,45518,9341,44766,44863,6782,24412,44856,6862,44853,28313,44873,3,5993,45421,44711,45072,13425,22509,4765,45229,16885,45043,37267,17009,18353,17755,44775,45051,3883,17527,44836,18279,18446,18237,17657,18427,45262,44854,18301,45180,17092,24441,45517,44687,44851,18286,5410,14402,45516,44869,44845,44866)
Unknown column 'np.person' in 'where clause'