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 (30963,44858,44861,44739,18430,44711,17556,18652,31354,17009,18688,44745,45043,44845,18172,4765,44640,44865,37057,5388,45072,44851,28313,44836,24411,9341,18650,44870,18185,44849,10402,34194,30986,18279,17904,44669,17492,22509,45180,44875,18042,44687,18301,45262,18900,45515,17771,17756,44894,44837,6782,17092,17755,44685,8753,13922,44765,39676,17601,30135,18894,6862,16935,45051,44835,44766,17835,44854,44689,18648)
Unknown column 'np.person' in 'where clause'