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 (24438,5259,8753,6609,18648,30986,37057,6862,45286,17092,14402,18650,18427,44531,17278,17601,45518,44685,45561,44669,45072,17237,17009,18900,18172,14622,17657,28313,4765,44766,17703,44765,17839,45567,13988,44868,3,45229,24412,44855,18794,44674,44762,39676,18894,17335,34194,44687,10402,45346,17527,19078,18353,17492,43800,17556,44848,44884,45180,44856,18652,5993,44745,13,18688,44768,17835,44854,18237,17756)
Unknown column 'np.person' in 'where clause'