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 (17848,13,44851,45072,44762,37267,17981,17556,6875,18185,5388,17092,6609,19057,44640,45043,18688,18301,17756,44849,44845,18279,14402,44669,18286,44856,17771,3883,44854,17278,28313,44836,44674,18652,30986,4765,44687,17527,44863,3,45421,17839,44768,44873,44861,17237,18894,45346,45262,18353,44865,16935,17351,45515,31354,44868,30963,17114,16885,18430,44765,28530,17009,44685,18042,44858,32454,18446,44869,34194)
Unknown column 'np.person' in 'where clause'