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 (45567,44687,17009,17556,30986,17755,44765,3,18652,3883,16885,5410,31354,18301,13922,17114,17657,45072,30135,24411,17981,44884,44775,44867,44768,17527,17237,44836,18572,18172,44531,45277,44766,6862,18286,17092,17601,4686,45516,18430,5388,44868,14622,44875,18185,44861,16935,44671,44669,39676,44685,10402,28530,18446,24441,44689,14402,44865,44835,44674,45517,17904,44845,44837,44640,18894,17839,28313,5259,45051)
Unknown column 'np.person' in 'where clause'