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 (17771,45051,44878,17839,5993,44739,4765,30963,17278,9341,18301,17755,44848,18279,17527,44863,18286,18353,18688,36472,30135,44858,44835,45561,18900,17703,37057,5259,44865,8753,18650,22509,28313,18185,17601,5388,17756,44851,39676,24412,45277,17848,18172,37267,45177,18237,44866,45286,44855,44853,44685,6609,17835,14402,18996,13922,44674,4686,18652,31354,18042,44687,17335,18446,44861,44531,44875,18427,24411,18430)
Unknown column 'np.person' in 'where clause'