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 (36472,44685,17755,18286,45042,4686,17848,44865,18652,3883,18185,6609,44531,13425,44863,5993,18650,14622,5410,44640,24438,44836,17092,17835,44856,17601,17009,44861,14402,6862,9341,22509,13988,44762,45346,10402,30135,18719,37057,44894,44884,45180,44687,45561,44867,45516,44674,13922,18900,18572,5388,34194,8753,44739,44858,44845,45515,45177,44837,18430,28313,6875,24411,45518,17351,45277,17527,45043,18237,44745)
Unknown column 'np.person' in 'where clause'