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 (18996,45042,30135,45567,18652,14402,8753,18427,39676,45051,44674,44685,18572,44851,43800,44869,6862,10402,45262,3,44870,24441,45043,17114,13988,44866,45516,45072,18446,17278,44531,44848,37057,44765,9341,44865,16935,22509,44854,19078,18042,44835,44671,18688,3883,45517,18301,18172,17835,18286,44845,18185,17601,16885,44858,17556,44837,18894,45421,17981,18900,45561,45229,45515,44849,44873,5388,44878,5993,44775)
Unknown column 'np.person' in 'where clause'