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 (44848,17839,44867,44764,44745,18279,17904,44854,5410,6875,36472,17835,17278,44866,24441,45042,44861,22509,45346,31354,13425,18237,44767,24438,24412,44768,4765,10402,45177,45286,44870,44687,44739,44531,44845,44858,19078,30963,44836,18688,16935,5993,45517,45262,44878,45180,44894,17114,17755,13988,18794,18572,37057,28530,44851,45229,17237,44835,18301,30135,45421,44853,44711,44863,44849,17601,3883,17092,16885,45277)
Unknown column 'np.person' in 'where clause'