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 (17492,44835,18427,17755,45421,45043,17848,4765,44767,44858,6862,44685,16885,44866,18572,17527,37267,30963,45229,45180,24438,44671,14622,17335,3883,44531,18981,44869,18650,18688,44875,18719,44768,17237,18185,45516,5388,45517,44855,18301,44640,36472,44845,6782,30135,45567,44868,24411,18794,45051,43800,17756,18430,13922,44865,44878,18446,18172,45346,17657,17601,17351,17771,5259,18353,16935,45277,44775,45072,44739)
Unknown column 'np.person' in 'where clause'