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 (18237,6862,43800,45051,17092,13,18279,17527,44640,44765,17237,44866,13425,17756,45262,17278,18719,18427,28530,44855,17835,17657,18301,22509,9341,6609,37267,37057,18688,14402,18286,4765,45286,44671,17904,28313,17839,45516,44768,44766,44894,39676,45277,45229,18185,45346,18894,6875,17601,5993,18042,44858,13922,18996,44685,44836,30135,45561,45515,8753,24441,44884,44687,44856,44775,44835,17556,18981,44865,45180)
Unknown column 'np.person' in 'where clause'