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 (5259,18719,8753,17114,44775,17848,13988,19057,44867,32454,17601,18279,9341,44685,18353,45516,17657,37057,17492,44835,44851,17278,45567,28530,18185,30963,18446,5993,10402,44873,24412,6862,18286,17335,45286,17835,18427,45515,18996,17527,18237,18794,18981,44856,44689,3883,44836,4686,44768,18688,17092,44674,17703,17755,17756,44671,44767,18301,44669,44854,28313,22509,36472,4765,43800,16885,18652,45042,44865,18650)
Unknown column 'np.person' in 'where clause'