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 (44866,44870,18279,6862,17237,45561,17755,18353,44836,19078,44837,44835,14402,44671,45515,24412,44531,37267,4765,44878,44674,22509,5410,18719,44855,45043,18650,17657,8753,44873,44848,18652,44685,18572,44766,17839,9341,17556,17756,18185,45567,44849,45518,5993,18894,32454,17335,44856,16885,45516,17009,44762,17771,16935,3883,19057,17904,44765,39676,44711,36472,5259,44767,44851,44865,6875,45051,44845,45277,18286)
Unknown column 'np.person' in 'where clause'