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,17657,17237,44739,45180,44685,45567,14622,17601,17981,5388,17756,18572,34194,45346,37057,28530,17703,44884,45043,44845,44865,44858,18652,18172,17092,45516,17492,44875,44851,18688,6875,44768,45518,17755,44775,45051,18237,44745,30963,44767,3883,13988,44669,19078,44853,45072,44856,45177,44689,5410,22509,18650,44848,6609,45286,13425,44671,18900,45517,44863,9341,44894,44855,24438,45277,44762,44711,17839,5259)
Unknown column 'np.person' in 'where clause'