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 (30963,17839,44878,44685,44873,44865,17351,13,44868,17703,44768,44671,17835,18042,36472,18572,3,44858,17009,14622,34194,44745,5410,17527,44863,17092,44766,24441,44687,18430,17755,45177,18237,45180,17904,44875,18446,45518,17756,13425,44856,45561,44869,18719,24412,44855,16935,22509,44739,44674,18301,45229,19078,17601,17771,10402,44848,44669,44884,43800,44531,17492,17981,24438,45262,44845,6609,44851,18652,18794)
Unknown column 'np.person' in 'where clause'