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 (17755,30135,17492,45229,18794,44687,44863,30986,19057,44861,44873,44685,44865,44851,45043,17278,18648,44867,44845,18719,13988,5993,44856,6609,45518,45567,44671,17556,18353,45517,44869,44849,45421,44837,44854,17601,44745,18900,18237,9341,17009,45262,39676,14402,18301,4686,17657,18894,17351,16935,45051,18427,17114,5259,44762,34194,18650,17703,37267,45515,8753,18286,45516,17335,10402,43800,24411,37057,44674,18572)
Unknown column 'np.person' in 'where clause'