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 (18430,44866,17703,44674,17527,19078,18981,13922,17492,17771,17839,45567,13988,18185,17092,44671,45516,45277,17835,34194,18650,17114,44849,18353,37057,44884,44845,18427,44869,44766,17009,18279,44685,28313,44861,44764,17601,18688,45043,18794,18652,24411,45286,19057,44640,44687,17848,45229,5993,45518,45051,44878,44836,45421,17755,10402,17756,43800,6609,18572,14402,44873,17278,44870,44739,14622,45072,24438,3883,4765)
Unknown column 'np.person' in 'where clause'