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 (45286,34194,5388,45180,6875,45421,18719,44858,18900,17848,6782,24441,17492,22509,18650,45262,44689,44873,18652,17009,19057,45517,17703,4765,18353,44837,44640,17756,44878,45051,30963,44531,3883,13,44674,17237,13425,8753,44836,44870,18894,18572,45561,6862,6609,44669,44866,44685,44687,44767,9341,44848,28530,17981,45072,44856,44671,17601,44861,44765,44711,3,43800,16885,36472,37267,44766,17556,45567,24412)
Unknown column 'np.person' in 'where clause'