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 (24412,45516,18185,8753,45277,44875,5410,18286,17009,24441,17278,18279,17114,22509,18900,17657,44767,17755,18981,44835,45072,44762,18652,44845,19078,34194,45517,13425,45043,44745,10402,18427,43800,44837,17771,18794,17839,45286,45042,13922,4765,45421,45346,17981,45051,36472,45180,18572,44865,44671,17848,18172,44669,17904,16935,18446,44878,28530,18719,44851,44856,30135,45518,18650,44687,17835,18430,18042,24411,17703)
Unknown column 'np.person' in 'where clause'