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 (16885,17771,18237,18427,18650,13425,32454,18172,18900,17335,18042,17601,22509,18446,45177,30135,18794,45229,44671,17278,17904,18279,17527,28313,44765,17755,44711,30986,13922,44854,18648,44848,44875,5993,45518,44766,24441,43800,44775,18286,17839,6609,4765,28530,37057,45286,44835,44531,10402,13988,44894,3883,18719,44861,45042,6782,17981,19057,45515,45421,45567,44745,6875,45072,37267,17657,45346,45043,44739,44868)
Unknown column 'np.person' in 'where clause'