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 (17848,45051,44765,31354,17335,19057,24441,44853,18794,44768,37057,30986,17114,37267,44863,17839,45277,44764,43800,17835,44878,45515,44835,18279,5993,17755,39676,8753,44866,44689,5410,22509,44856,44854,45346,18996,44848,4765,44884,18981,45042,18427,17981,13988,24411,5259,44845,18652,6609,44687,45567,16935,5388,18688,45517,17657,13,44531,44894,44837,28530,44875,18237,6862,32454,44873,3883,18353,45180,17492)
Unknown column 'np.person' in 'where clause'