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 (9341,19078,44671,44854,44865,45516,44767,44855,44711,17657,5259,18237,44745,6782,8753,44858,44867,18279,17839,14622,45517,44669,44768,44739,44849,34194,44878,18688,6609,18353,44869,6875,45515,45346,30963,17351,17092,18981,17904,44845,17237,18648,30135,45180,45286,19057,45561,44762,24441,13988,44873,43800,13,44764,3883,44853,45518,45043,18430,22509,17114,10402,37267,4686,18894,5410,28313,17009,37057,18446)
Unknown column 'np.person' in 'where clause'