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 (44837,24441,44853,5259,17601,45180,18894,44845,5993,28530,17981,44762,37267,16885,44884,17278,18172,44855,44878,44858,44669,17114,18688,6609,44685,36472,44745,44861,17839,44766,4686,18572,18900,28313,44764,45421,44767,45567,44863,6782,8753,9341,45051,44687,44689,17771,44848,45517,17756,44875,24438,17092,18430,44531,3,18446,5388,44854,22509,17556,17527,45518,18996,34194,17703,44674,6875,17835,3883,44868)
Unknown column 'np.person' in 'where clause'