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 (45286,14402,18719,17904,3883,18286,9341,45517,18042,44671,45042,17839,18996,17278,45516,18172,44884,17835,31354,45567,19057,44894,45518,45346,44868,44766,18185,18648,17703,24412,44739,44837,44765,13922,44762,14622,16935,45515,24411,45043,44674,17848,44845,13,18446,17527,45561,6609,17771,44849,18652,34194,17492,44851,44869,5993,44861,6862,6782,10402,44875,44848,18650,44855,44685,18894,44866,44711,18572,44640)
Unknown column 'np.person' in 'where clause'