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 (45515,4765,17351,17839,44878,5410,44875,36472,32454,44687,44853,16935,6875,10402,24411,17114,45517,44873,14622,44689,18353,45567,44868,19057,18794,30986,3883,18237,44894,45262,17092,44764,18185,18981,3,44762,18996,19078,17601,18301,45421,24441,44674,18894,45177,17981,45286,45518,44851,9341,44858,6862,17335,17278,13988,30963,44739,18650,45043,6609,30135,13922,18279,44766,44765,37057,28313,44854,13425,44711)
Unknown column 'np.person' in 'where clause'