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 (44640,45346,6862,18719,17351,45043,31354,44739,44849,45421,17981,9341,37057,14622,44531,17601,44764,10402,30135,24411,17092,45177,17237,18794,17771,17556,13988,18900,37267,44855,24412,18172,18688,44866,17114,44884,44685,17009,44875,44711,17703,18185,45277,36472,18430,6875,14402,24438,17335,28313,18446,44853,43800,19078,45517,45561,44768,30963,45567,24441,18279,8753,13,44865,30986,18301,18650,44854,45518,44837)
Unknown column 'np.person' in 'where clause'