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 (44866,18353,45518,17601,45421,45180,44854,44768,45277,18981,18900,6862,34194,14622,44865,45346,44894,3,13,44853,17335,17848,44669,18279,44531,43800,17351,45042,45567,17981,45516,19078,45051,18042,44775,44851,44689,17703,17237,24411,17657,44739,44873,17771,44836,44845,17009,18794,44878,37267,44766,28313,18894,44858,24438,9341,18185,18286,10402,45177,18996,44745,5410,6875,19057,44711,44869,17839,45043,18648)
Unknown column 'np.person' in 'where clause'