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 (45421,44873,18648,17703,18446,18996,45051,9341,44865,44689,44745,45043,17492,18652,17237,18794,39676,18301,18894,44837,44858,24441,44669,17657,44853,18279,44766,18427,45072,45262,4765,44851,45042,44866,45516,44531,44836,28313,44835,45177,44869,18572,44854,17335,45180,19078,44868,30963,45518,18185,6875,17601,44674,18719,36472,5259,44711,17092,45286,18688,44848,44739,16885,17848,17771,5993,17839,14622,37057,13922)
Unknown column 'np.person' in 'where clause'