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 (18279,30986,13988,19057,44685,45517,6609,3,5993,24438,17278,44687,17755,22509,44865,17601,17657,14402,44768,44766,18572,39676,44868,6782,6875,10402,17351,18172,44853,37267,18894,44762,18286,44875,18237,18981,44835,44878,44640,5410,44837,17556,45180,9341,18446,17092,17904,4686,44669,34194,44845,18648,44867,44870,45072,44851,18794,18301,44739,18688,45518,18042,44531,18430,13922,44767,13425,24412,32454,24441)
Unknown column 'np.person' in 'where clause'