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 (17756,37267,45229,34194,17835,39676,5410,16885,3883,43800,44674,17904,44863,8753,6609,18279,9341,45042,44765,45262,17657,45286,18446,24412,45346,17527,17278,3,44640,44878,18981,44531,44768,18719,17092,45277,14402,45561,18353,44762,45567,32454,5259,44855,45043,19057,36472,44687,45051,18572,18301,31354,17848,17981,18237,44836,18794,18652,18042,13,44853,19078,18427,44866,18648,22509,18430,17351,10402,24411)
Unknown column 'np.person' in 'where clause'