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 (44687,44531,44873,22509,18286,4686,24412,44764,44865,45042,44762,44765,44884,17092,44875,18279,44775,17009,44894,44767,17835,44766,44851,18427,17703,44836,28313,44768,18172,17657,13922,44837,18430,44685,17601,17278,45277,3,44868,17492,19057,30986,31354,17335,45515,18237,17351,10402,18353,18650,37057,34194,16885,45180,18894,16935,44863,44854,44858,30135,44745,18446,9341,18719,18688,17527,18652,45346,30963,18572)
Unknown column 'np.person' in 'where clause'