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 (45072,17981,44768,17771,44866,45229,39676,18894,37057,44869,43800,44687,44878,17835,44671,6862,18652,44884,37267,24412,17114,44845,18719,44873,8753,44689,14402,5410,17703,44868,45516,45517,6609,44640,13988,44856,13,44863,24438,18185,45518,44867,30986,44851,45561,19078,18996,4765,44685,44762,17556,45177,44855,16935,45567,44835,18794,18042,22509,17278,17755,3,45042,44836,13425,5388,44837,17657,32454,18427)
Unknown column 'np.person' in 'where clause'