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 (44853,24441,17527,45229,44711,18652,45515,44848,6875,18894,44764,44869,18719,18172,44849,44867,3,44873,37267,18042,44836,44835,18353,6862,37057,45518,18427,44739,17904,44858,14622,17839,18572,17755,44687,45177,19057,3883,45262,16885,44865,18237,24438,16935,18648,39676,44674,44775,44845,44745,44851,17009,44765,5388,5410,44870,13,45042,45561,17981,22509,44863,30986,45421,18900,45277,17556,44671,45051,17703)
Unknown column 'np.person' in 'where clause'