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 (45421,18650,45180,45262,18446,24438,18996,44768,44775,37057,44837,10402,44861,44669,45567,45518,5993,45516,3883,44765,18286,45277,17755,17848,18894,44745,18301,44687,18719,4765,17335,44865,5410,6609,28530,45043,6782,17904,17981,44878,9341,36472,5388,44884,44873,18237,18172,24411,44875,16935,13425,18900,14402,30986,18279,45177,44869,6875,37267,44854,45515,18353,44685,44674,44766,17657,34194,17351,45229,44863)
Unknown column 'np.person' in 'where clause'