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 (45567,18286,44764,45262,17981,44671,44854,17771,43800,44865,44835,44767,45277,44765,5259,44884,6875,9341,44875,45516,44848,18172,17756,18237,45518,44851,31354,44687,44849,22509,17237,18648,44870,24441,18430,6782,17848,45515,44745,18894,19057,17657,44711,18446,45561,44685,30986,44837,44873,36472,44867,44878,18572,44689,44866,30963,34194,44894,18353,18042,17351,18279,44531,17839,37267,17835,18900,45346,45180,17092)
Unknown column 'np.person' in 'where clause'