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 (44711,4765,44836,17756,9341,44669,44531,17981,44775,17009,24438,18572,44858,44766,17601,44873,13425,18794,44851,14402,18719,44687,44689,8753,44765,18427,44837,17771,17657,18185,44861,18648,5388,13988,24411,18894,45229,44856,45567,6875,44745,45517,17839,3,28313,39676,45421,18353,17492,36472,44875,44868,44640,19078,17278,24412,17848,17703,45286,45042,18650,6609,18301,44863,17556,37057,44866,31354,17114,30135)
Unknown column 'np.person' in 'where clause'