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 (45177,18237,44873,13,44768,34194,3,18446,30986,6862,18172,44856,44849,44669,17092,13988,44775,17278,28530,45516,17335,5993,44855,6782,44836,18719,16935,17009,44894,17601,9341,17755,37057,17237,45567,44848,28313,45262,44766,36472,4686,18353,18652,4765,30963,44875,18427,45346,24438,18430,17839,30135,45561,44868,17835,18572,44640,17771,44835,14402,44866,16885,45229,45051,5388,44711,44869,17351,18650,18794)
Unknown column 'np.person' in 'where clause'