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 (5410,8753,18279,44863,37057,44739,18286,9341,44745,45561,18688,45043,18042,18650,18572,17114,45262,16885,45072,44873,17278,45516,18996,18894,44875,4686,45518,18446,17601,24438,44766,44894,17657,44851,22509,44853,18430,17492,13988,17771,44836,18237,17703,13425,18353,5259,17092,6782,44685,17756,45177,24441,18301,5388,44865,17835,45277,44858,44711,44671,44837,44775,32454,34194,17351,44868,39676,44762,37267,45517)
Unknown column 'np.person' in 'where clause'