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 (44870,43800,16885,22509,45286,13425,18353,18286,3,6609,17278,18042,44865,45518,44768,44869,17703,17009,17527,24438,44856,17839,44711,17237,44875,37267,36472,44884,17114,13,44867,45262,44767,44849,17755,44845,6782,18688,8753,5993,44685,39676,45516,18572,31354,18172,19057,18279,13922,44863,32454,44868,18648,45567,30963,44766,44531,24412,16935,44835,28530,18301,17848,44640,45421,44851,5259,17904,44764,44775)
Unknown column 'np.person' in 'where clause'