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 (6862,5993,19078,18279,3883,18652,18430,19057,18719,17703,18900,14402,18688,17237,44845,44870,44875,4765,5259,17335,44854,17904,24411,18981,44869,45072,44848,13988,17839,44640,44873,18794,17657,24412,45229,45277,17092,30135,44894,45567,30963,45051,13425,24441,18446,4686,3,44855,45516,45515,6609,45561,44768,17527,44685,17114,13,44851,44849,45518,28313,6875,44863,39676,6782,44671,44878,44739,17492,44853)
Unknown column 'np.person' in 'where clause'