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 (24411,44687,39676,17351,44762,4686,45072,14622,18430,44853,28313,18652,19078,5993,13922,44858,44865,6609,44867,45286,44640,18172,44835,18996,17755,18427,17527,18688,17278,44894,3883,18301,22509,18286,45518,45517,17556,45515,17114,44869,44845,17092,44836,44861,17771,18042,13,30986,18185,44745,16935,45516,13425,45346,6782,5388,30135,5259,32454,9341,24441,18900,17335,44884,17009,45421,17601,30963,44848,18650)
Unknown column 'np.person' in 'where clause'