Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (18688,17527,17601,18286,44858,32454,18894,45561,18353,44775,44878,45177,17351,45515,17237,18185,6782,9341,36472,17839,6862,44875,22509,44869,44766,10402,6609,45180,44865,44640,45517,17114,5259,44855,44856,44739,5993,16935,45346,6875,13922,18648,43800,45277,44835,16885,44868,18301,17657,45229,44866,45421,24412,18042,44687,44853,17278,44884,44894,18572,45262,13425,45043,14402,44851,13988,45072,18652,17756,24441)
Unknown column 'np.person' in 'where clause'