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 (17556,6862,44835,3883,44869,45561,44531,5259,17492,17335,13922,17009,24441,44711,6609,44854,34194,19078,28530,8753,18996,32454,18172,13988,17839,45515,44870,44865,18286,18650,16935,37267,45262,44768,44855,44873,44868,44669,44861,44856,44845,44765,44767,17848,10402,30986,19057,44894,44851,44685,18572,24412,17771,44766,5993,18301,36472,17981,9341,17904,18794,45516,44674,17278,44866,45042,45517,44853,18981,18427)
Unknown column 'np.person' in 'where clause'