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 (44685,4765,19057,17601,17755,17492,44878,5388,13988,18650,44768,44858,44745,30963,45516,22509,16885,6875,45262,45286,43800,17756,18894,44849,44739,17848,30986,44865,44866,44775,28530,24412,24441,45517,18652,3883,18301,44687,17092,6609,44764,18794,17839,14402,44884,30135,44875,17556,18996,45229,44762,44837,34194,19078,18172,44669,44711,18648,36472,16935,44868,45180,44870,45277,31354,44689,44671,17237,44894,18042)
Unknown column 'np.person' in 'where clause'