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 (44853,18688,44766,17601,45561,45042,45421,44873,17114,45043,3,17527,5410,44845,28313,44867,13922,6782,44849,24438,44775,45346,30986,18572,17981,44745,17657,18353,45516,44863,44884,44764,4686,17756,18650,24412,18237,18794,44894,34194,44685,17009,18446,32454,44869,17835,36472,44875,5259,17335,19078,10402,13,4765,17904,44851,28530,44836,30963,5388,45051,44739,44640,44878,17278,22509,44669,18652,18042,45072)
Unknown column 'np.person' in 'where clause'