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 (45177,44851,4686,16885,10402,18042,30963,44845,44768,28313,17278,44765,28530,44745,45517,45043,44687,17835,44669,45072,44867,17657,44878,24411,44868,17335,13988,44837,45042,6862,45346,44853,37057,45518,45561,17492,44764,44858,44873,44671,5388,44870,6782,17237,44894,18652,44674,4765,44875,18237,18794,17755,18353,44869,39676,16935,44836,30986,44767,18688,17351,3,17756,18427,44775,18172,18430,44856,13922,43800)
Unknown column 'np.person' in 'where clause'