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 (44768,30135,44837,17755,44687,44870,18981,18353,45515,5410,44765,18719,44836,32454,44863,45421,19057,18572,44884,30963,6875,10402,44745,18894,18286,24441,17237,36472,44873,30986,16935,6782,8753,6609,16885,17771,28313,45518,44671,17351,45262,43800,13,44775,44685,4765,18427,37267,17009,44868,17848,44849,44845,5388,6862,9341,45043,45517,44869,24411,24438,5259,17114,44894,13425,45072,44711,39676,18688,14402)
Unknown column 'np.person' in 'where clause'