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 (22509,18996,17771,17904,24441,45262,6782,44856,17556,45177,44837,17492,45421,44745,16935,13988,18353,44687,17755,17657,37267,18279,18981,5388,44640,44762,44865,18719,14622,3,45516,18688,44848,44669,44863,9341,37057,45561,18237,5993,44768,44849,44866,14402,43800,24438,45072,44855,44836,8753,44858,28313,17839,44845,6609,17009,4765,31354,3883,18900,44531,44854,44894,44689,17351,45518,18185,18652,4686,16885)
Unknown column 'np.person' in 'where clause'