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 (22509,39676,18900,9341,17237,8753,44685,30963,44671,3,16935,44687,44764,36472,18688,17839,44875,44836,6875,44878,44835,44775,17009,45515,44765,44853,18446,13988,34194,44674,45518,13425,32454,4686,17703,5259,44884,30135,44858,45229,18719,45262,6862,5388,17092,14622,18172,18185,17657,3883,31354,45346,24438,5410,17848,17835,18427,24412,44739,45043,45286,5993,18794,18237,17904,18430,18286,44865,17771,44848)
Unknown column 'np.person' in 'where clause'