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 (44858,18688,18279,45262,44848,44855,24441,18430,8753,18237,31354,44739,4765,18894,18900,44870,5259,44640,37057,44837,45516,36472,6609,18446,44873,44851,44711,30963,28313,17703,44766,5993,17351,10402,17114,5410,18794,18427,45567,44868,45051,19078,30986,24411,44689,45229,6782,44767,18185,17009,44894,16935,44687,18042,45177,17492,13425,13988,44531,45515,44762,17278,44878,45286,17601,17657,17839,17092,45180,37267)
Unknown column 'np.person' in 'where clause'