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 (37057,44687,8753,44739,18430,18981,18652,43800,44765,18172,18042,13425,5259,45177,30986,36472,30135,4686,18286,45072,44853,6782,45051,17492,44836,44851,18648,28530,18719,17848,45515,13988,17237,44640,6875,44854,13922,9341,19057,18688,6609,17756,17703,17351,5410,45043,44764,44870,18650,17556,19078,17839,24411,44868,44768,3,44884,44845,30963,44671,44711,44867,44878,44856,17278,44863,18446,17092,44766,45567)
Unknown column 'np.person' in 'where clause'