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 (44765,44865,44669,17839,18185,45262,5410,17755,18430,28530,17114,44866,18237,44853,44671,44868,44835,4765,6609,44640,17657,18446,18996,43800,18353,45567,24438,30986,24411,44685,44873,19078,17981,32454,45516,17492,18286,44861,18981,44851,45229,45043,18900,8753,30135,18894,17278,18042,16935,45042,44884,44768,16885,5388,44689,17009,24412,18688,44711,13922,45072,6862,44531,44878,18279,44869,44687,39676,10402,45051)
Unknown column 'np.person' in 'where clause'