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 (45517,18237,45516,18996,44689,44856,5259,6875,17556,44861,44768,37267,18446,22509,44849,45180,45177,18301,44766,44764,17114,17904,18652,18894,44870,18427,44854,6609,44848,44671,44745,43800,45072,18430,18185,44835,17492,44845,17839,44711,6782,45515,31354,45518,36472,37057,17278,45042,44669,16885,14402,44858,44767,44875,28530,18353,17657,44836,17771,18719,17601,44894,17009,5993,44640,17527,44869,30963,44765,45277)
Unknown column 'np.person' in 'where clause'