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 (13988,17771,13922,17335,24412,44671,6782,24441,44848,44837,17703,9341,18794,44685,22509,44745,17492,17556,3,30135,17527,3883,45518,44853,44878,5410,44869,45262,17237,18981,44687,32454,10402,44739,17981,19057,45229,44894,17839,18650,44845,13425,18286,44884,37267,18301,16935,44669,17756,44863,45515,44766,44873,18572,45277,44866,44531,18042,44867,28313,17904,18996,17351,17009,45051,44849,18446,44674,5259,19078)
Unknown column 'np.person' in 'where clause'