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,17756,5410,6609,18237,45286,13988,18286,18794,13,13425,16885,44848,16935,44762,30986,17492,17114,5259,18172,44837,44531,44865,44851,44878,45180,44873,44869,34194,18353,44855,44875,5993,18719,44745,30963,45277,44669,18688,45177,44775,17335,44849,17601,31354,10402,36472,45517,45042,6875,17092,24411,18650,18446,17009,45229,44835,14402,44674,30135,37267,17278,13922,44671,45516,17527,44870,18430,44739,45421)
Unknown column 'np.person' in 'where clause'