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 (18446,10402,44875,13,17237,44849,17278,3,44866,17556,37267,30986,19057,17904,24412,16885,4686,44868,44671,44768,45567,18430,45177,17492,44531,22509,18279,24411,8753,18794,37057,45072,44640,17657,44836,17756,44685,5259,18894,6875,18648,44856,44674,45517,18286,17848,16935,14402,18172,30135,45229,6782,14622,13988,44858,17703,24441,18688,18996,44764,45262,45051,17092,30963,6862,18237,45516,44869,17835,18650)
Unknown column 'np.person' in 'where clause'