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 (44689,13922,17703,44869,6862,24412,44640,44848,44865,5388,34194,18279,17527,17092,45051,44674,18172,44851,44739,8753,43800,44867,24441,45042,39676,45561,3,31354,17009,44837,18894,44768,17335,14622,45518,17601,44845,44878,18688,44671,17755,44884,44856,44669,44745,17556,44870,45421,18185,44855,44863,5993,17114,17351,44849,18237,37057,17771,44853,18301,44685,22509,17756,44764,17904,44875,44858,37267,17848,18042)
Unknown column 'np.person' in 'where clause'