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 (44875,44762,44689,9341,28530,18652,45286,22509,44849,10402,18996,44640,44711,37267,45051,17237,13425,13,44848,17009,18719,18794,44845,17527,18286,18981,3,31354,24438,45517,44851,5388,18430,45567,44854,44878,44837,17492,44687,14402,30963,44768,44745,37057,45515,17351,6875,30135,18172,44836,45421,6609,13988,44867,39676,28313,44764,44858,32454,44873,44870,6782,14622,19057,44861,44775,44767,16885,44855,5410)
Unknown column 'np.person' in 'where clause'