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 (44858,44685,18237,17771,44873,17556,44875,17703,44766,44687,17492,18900,14402,44835,17278,44894,44767,18688,45051,19057,44849,24412,18042,44863,17009,44711,36472,45518,43800,45421,18650,45515,45177,44836,44848,17601,6875,17527,17114,44865,45072,22509,18894,44765,17835,44640,17755,44856,18572,13988,17756,44669,45516,44674,45229,45346,4686,4765,45180,39676,45042,44768,44764,44837,18652,30963,45567,10402,5993,44861)
Unknown column 'np.person' in 'where clause'