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,37057,44866,18996,17703,18648,17527,5993,16935,13,30963,44671,16885,13988,44849,45346,17556,45043,17771,5410,31354,44858,17839,44867,37267,45072,6875,44689,4765,44861,44674,22509,44863,18237,13425,18446,18279,44765,18301,5259,18894,44766,17756,19078,45262,8753,45567,44764,32454,44531,17114,45518,17904,44873,44854,24438,6609,18650,44875,44762,44894,45277,39676,45229,18572,17848,45177,3883,28530,44837)
Unknown column 'np.person' in 'where clause'