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 (24441,45180,17351,44851,44764,18719,3883,30135,17904,13988,44837,18652,18446,18794,44884,44878,44768,44863,17492,18301,16885,45043,45561,17335,44854,17092,37267,44762,18042,17848,30963,44674,5259,18900,44873,18894,18572,18237,5410,19057,13,14402,5993,39676,44870,17839,17556,18650,31354,14622,44855,6782,45346,44861,18427,18185,17835,44669,37057,44689,44835,34194,32454,36472,44869,45518,45072,17278,24412,6609)
Unknown column 'np.person' in 'where clause'