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 (18981,19057,18572,17703,44835,6862,24411,45286,18301,4765,44674,18446,45180,17556,45515,17351,18172,44875,43800,44836,18650,17009,24412,45043,44856,10402,44855,13988,44685,36472,44861,30963,18996,17755,18794,17835,44640,19078,18286,17839,4686,18279,30135,17114,44689,45567,16935,22509,9341,37057,44767,24438,44739,44687,3,45421,45051,18430,45042,39676,44867,17492,13922,5388,17981,44762,45518,44849,6609,3883)
Unknown column 'np.person' in 'where clause'