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 (5993,17756,44869,18279,18900,5388,44861,45229,44671,17009,44685,44845,45346,17657,17527,43800,17755,44775,44858,30135,44863,4686,44894,17492,18894,44873,6875,18353,6862,17839,44739,17601,44762,18996,5410,45517,17092,44849,17335,3,18427,18688,45180,44711,44837,44765,44848,17278,28530,18650,44870,13425,44674,34194,45518,36472,45567,44878,16935,17848,45421,45042,6609,13988,17237,17981,31354,28313,44866,18237)
Unknown column 'np.person' in 'where clause'