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 (45262,5993,10402,6782,17703,44739,44669,18172,13988,37057,44875,6862,18446,18185,44640,45561,44762,17657,18652,17835,6609,17755,44855,17278,44854,18572,44711,6875,44835,44856,44853,17848,14402,44685,5259,44837,44775,44836,24411,17839,44878,18794,17114,34194,45229,44531,9341,43800,18996,18650,44745,17335,18430,19057,18981,44687,44894,13425,28530,17009,5388,44869,17771,18719,45286,16885,17981,44845,45567,44884)
Unknown column 'np.person' in 'where clause'