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 (45043,45516,44671,17657,4686,44836,32454,17335,44837,24411,44875,44762,45567,37267,18279,17092,36472,37057,18237,44845,18996,45561,10402,16885,6782,18185,17771,45229,44640,13922,18981,5388,18650,18719,31354,9341,44851,44884,19057,44870,18301,18794,44768,34194,44674,14402,45180,5993,17904,17835,44849,45277,8753,17278,44866,44764,45262,44856,45286,17756,17009,18572,44854,43800,45518,6875,24441,18172,28530,18427)
Unknown column 'np.person' in 'where clause'