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 (44531,16935,44875,44894,18279,18652,18794,37057,44849,44764,45561,3,17835,17009,28313,9341,44866,17092,18430,45043,44766,44836,16885,18172,44674,13425,18719,44858,18996,24441,34194,44855,24411,44853,17351,4765,30963,44837,18900,44884,31354,45518,44851,10402,6875,32454,13922,14622,22509,14402,18688,17237,44671,45072,5259,45515,18185,44878,17114,19057,17335,44685,44687,44854,17556,44845,43800,44669,44861,18446)
Unknown column 'np.person' in 'where clause'