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 (44861,19078,44894,44687,44855,18185,45051,44853,30963,18981,16885,36472,18279,45421,17703,13988,5993,18719,17114,17009,44858,44869,44856,44767,14402,18430,17237,44711,30986,44768,18652,45567,3,44689,44775,44854,6862,17848,44873,6782,18172,28530,18572,17092,44875,17771,3883,45517,18996,5259,17835,13922,44640,44836,17755,44884,6875,13,45561,17556,30135,18353,16935,24411,18427,39676,43800,17839,45043,28313)
Unknown column 'np.person' in 'where clause'