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 (28530,44689,18042,17092,37267,18688,22509,16885,17904,13,6862,17771,17839,17601,45072,44875,44768,34194,28313,5993,3,44884,18301,37057,44865,17009,44836,17556,16935,18794,4765,45286,44765,44766,44775,18430,45421,17114,17335,18279,17657,44858,45517,30963,14622,44685,18286,18719,44640,44849,44855,45177,44861,45051,45561,17756,44674,6609,5410,44878,13922,18185,18172,17703,44845,18650,44853,24441,44669,32454)
Unknown column 'np.person' in 'where clause'