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 (44865,17492,44531,17114,44845,4765,44870,44837,17755,28530,18900,5410,37057,18688,44739,18794,45262,18652,18719,18237,24441,17771,44848,44766,30963,44767,44853,44765,45567,13988,5388,43800,18894,24411,44764,24438,45051,24412,45277,44849,44835,16935,36472,13922,44711,44858,14402,18981,37267,44873,44875,17703,17839,44762,31354,17835,18572,17092,44854,3883,44869,18353,17351,44745,45072,13425,44867,34194,44894,18279)
Unknown column 'np.person' in 'where clause'