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 (37057,18185,44762,18042,24412,17492,44836,17981,44894,44739,17771,6609,24438,17278,45180,44884,18430,28530,9341,4765,44745,44856,44837,10402,17114,43800,45518,44851,5259,44849,44845,45051,30963,3,44685,5388,17756,44865,19078,45567,45042,45177,45277,36472,44869,44848,13988,45421,17839,17009,45286,17601,44711,44766,44674,19057,44875,31354,37267,44775,17657,45516,6862,44687,44669,17237,30986,44764,17556,13922)
Unknown column 'np.person' in 'where clause'