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 (45421,39676,45042,44865,17904,18279,17351,17009,32454,45177,45072,24411,44866,45051,17839,17657,17755,44863,17237,45180,45516,45567,17835,44640,17601,37057,44762,17278,45515,37267,24412,45517,44836,44868,18650,18042,44766,6609,45286,17492,44845,44875,18900,18237,17092,17771,18894,18572,44849,44687,24441,18719,44855,45262,24438,44851,44848,44869,31354,18430,44775,18996,17556,16885,44739,6862,44531,17756,36472,44765)
Unknown column 'np.person' in 'where clause'