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 (39676,44766,5410,18719,44674,17839,17755,17092,14402,44845,45286,44861,17771,19057,18237,18172,6862,45515,37057,14622,44866,18427,44837,17335,10402,44640,5993,44531,18430,6609,44765,44762,43800,4765,28530,37267,16935,45042,18648,44868,13425,6782,44894,17114,8753,45177,18688,32454,18185,36472,44689,34194,45518,45043,45561,3883,31354,18900,18279,17756,4686,30963,17657,44863,45567,44836,44775,18572,5388,17904)
Unknown column 'np.person' in 'where clause'