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 (34194,44674,13,45042,17092,44767,17335,44878,45051,9341,4686,17839,44894,44851,44870,18427,28313,44768,6875,18981,44775,19057,44685,22509,39676,44762,16885,44884,18652,18996,44765,18185,44739,13988,44854,18572,17278,44866,45561,45229,17351,13922,45517,44849,17237,18237,45177,17981,18279,28530,44865,14402,44858,17556,6782,44873,44764,30986,44531,44861,44845,17771,45072,45516,18794,19078,37057,45262,17657,44745)
Unknown column 'np.person' in 'where clause'