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 (45515,6875,44739,5993,44689,13922,19057,44531,17601,17092,45072,44884,24441,45516,44768,44873,30986,44870,18794,24412,45262,44853,13988,18172,44858,45567,44855,45286,3,10402,39676,45277,44685,17114,45346,4686,18185,44865,22509,17904,13,44869,18446,18719,18279,44867,30963,36472,18652,44671,17771,18430,44764,6782,45229,18648,9341,44868,19078,44836,18237,28313,24411,17657,17755,44863,17278,44856,44669,5410)
Unknown column 'np.person' in 'where clause'