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 (44855,18981,44863,18652,30963,17351,17835,18794,17009,44689,17848,10402,44766,44854,44856,45051,44531,17237,18301,44837,18286,36472,18427,18719,44875,3883,45515,44845,44669,17601,45517,18237,5410,44685,18996,45421,45346,44870,39676,6782,34194,44835,28313,45177,44873,44640,44764,5993,13425,24412,4686,44745,44671,18279,44894,5388,17657,4765,44739,17556,19057,19078,13,13988,6609,24441,45567,17492,28530,45229)
Unknown column 'np.person' in 'where clause'