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 (45346,18042,17351,45518,30135,44767,31354,5993,44870,44640,44855,6875,44531,18572,13922,45043,18650,44745,36472,18237,18430,34194,17839,44739,13425,44836,45051,17771,14622,10402,24441,5410,30986,19078,17981,45421,44873,37267,45042,45277,44851,30963,9341,44849,24412,44866,44845,45229,32454,17009,45286,44764,16885,44765,45516,39676,17092,43800,5259,18981,17237,17492,6609,17278,44674,44865,45072,44768,3883,37057)
Unknown column 'np.person' in 'where clause'