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,10402,45567,24441,44674,5993,6862,45051,6609,45346,18688,19078,17848,37057,6875,44884,19057,5388,45042,36472,45515,18572,44856,44854,17904,32454,39676,44894,17835,17009,13988,44685,3883,16885,30986,31354,3,17756,45072,44687,18446,44875,44669,17771,44878,17527,18172,13,18719,30963,18286,18301,17981,16935,44640,28530,18427,17657,44845,44865,5259,44767,44855,44837,17351,45516,17335,45421,18430,17703)
Unknown column 'np.person' in 'where clause'