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 (19078,45072,44858,4686,44836,44849,18279,44762,30986,44531,44861,44853,16885,18301,17848,44848,44867,22509,17492,44671,44764,45286,18794,14402,17237,18172,44878,44863,44685,45561,18652,45515,30963,44869,6782,13,6875,24438,17527,28530,44873,17114,18894,19057,44739,4765,18650,18446,44669,18237,17703,18353,18688,36472,44745,31354,18900,44856,34194,13425,17904,18719,44851,44855,10402,17351,44640,28313,44868,45180)
Unknown column 'np.person' in 'where clause'