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 (45072,17009,44866,18688,44766,44835,18648,18353,18650,18237,44869,18794,17756,30963,44878,17237,17278,14402,14622,44739,6875,17839,45262,44873,17351,18652,17755,17527,44868,18279,5259,45517,18572,44848,44768,24412,37267,17092,45518,30135,10402,24411,44851,32454,44836,19057,18430,44853,24438,17657,28313,18172,44685,17904,44845,43800,18981,3,44764,13,18996,45515,18301,16885,44640,28530,6782,44875,44884,44856)
Unknown column 'np.person' in 'where clause'