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 (44845,22509,45286,18353,37267,17092,28313,44848,16885,3883,44868,18719,18650,44775,44849,17835,44894,5259,44851,4686,34194,44711,16935,9341,44867,24441,45346,28530,44853,18648,13,18894,6875,45262,14622,24412,44884,30135,10402,24438,17703,44855,44878,45277,44671,44685,17657,6862,37057,45043,3,44669,45515,44766,44858,45421,17756,17335,17351,18688,18981,17114,44640,17527,44764,30963,19057,19078,36472,44856)
Unknown column 'np.person' in 'where clause'