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,18650,45262,24441,45421,6862,45072,44766,18427,45518,44671,44884,18185,18996,44856,44687,18430,45517,31354,45561,24411,32454,45516,14402,22509,13,17657,5259,17092,5410,6609,44858,44866,6782,43800,45177,17848,18286,17278,44765,18794,17839,30135,24412,17009,17556,45286,18172,19078,39676,18237,13425,44835,18900,44764,34194,18981,44711,17492,44865,3883,18894,37057,45515,6875,18042,3,4765,45277,4686)
Unknown column 'np.person' in 'where clause'