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 (18286,4765,44531,24441,45277,18446,18172,18894,17835,16885,44858,6782,44845,5259,45517,18900,5410,31354,18427,17009,36472,44865,28530,6609,44835,44868,44768,45229,18279,44711,24438,44745,17351,17904,14622,18981,17839,17657,44674,18688,39676,44849,45262,9341,5388,45177,34194,45421,13,44687,17092,44875,44640,44867,44739,18719,17556,6862,19078,44762,19057,17601,18650,18794,3,17981,18237,16935,44837,45515)
Unknown column 'np.person' in 'where clause'