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 (24412,6609,44765,9341,17755,44745,44854,13922,18794,16935,24438,44768,18279,44849,44873,28530,44640,44848,17114,17981,17703,5259,44671,10402,30986,18427,18572,17556,44867,18650,18996,3,14622,5388,18172,6875,45072,19057,44868,45346,6782,17335,17237,18446,24411,44855,17601,18042,16885,17657,5993,45180,44837,18900,44711,17492,37057,45229,17839,22509,39676,19078,13425,4686,44856,32454,45277,44674,6862,44775)
Unknown column 'np.person' in 'where clause'