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 (14622,36472,28530,45072,17848,18286,17771,17556,5259,45567,6862,44869,13922,16885,44836,45043,44868,45561,39676,44894,24441,45229,18794,18900,45262,5388,44835,44867,45516,3,18430,30963,44745,17756,44764,17839,13988,6609,3883,44884,18427,22509,44861,6782,17009,30135,18042,4765,8753,44856,6875,45042,5993,44768,44837,24412,28313,18652,17092,45515,45346,44855,31354,43800,44851,5410,30986,44853,37057,18688)
Unknown column 'np.person' in 'where clause'