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 (45516,28313,17492,45051,18446,17904,3,45043,44863,44858,44873,44875,44762,18648,44868,17351,22509,14402,16885,30135,45180,45277,17981,44766,18185,17601,17839,30963,45042,4765,45262,4686,17756,16935,45515,44849,45567,5259,45517,13425,44866,9341,13988,18427,45421,44856,24441,37057,44687,13922,44845,45346,34194,44835,44854,44711,13,44767,6862,44745,17703,18894,44775,17009,44531,17848,44764,44685,18981,17835)
Unknown column 'np.person' in 'where clause'