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 (18688,18652,44866,44766,44767,44869,17009,44531,5388,45043,18279,24441,31354,9341,18172,44671,17351,44768,44762,6782,18446,18981,44884,16935,45051,45072,30135,14402,44863,8753,44849,44858,13922,45518,24438,18894,37057,45517,44865,13,39676,18794,45567,44855,45421,13988,44851,34194,17556,17771,22509,24411,17755,17492,44856,6862,44640,37267,17756,17278,44878,44674,44870,4765,18286,3883,17601,17835,17335,5259)
Unknown column 'np.person' in 'where clause'