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 (44766,30963,17771,44685,18172,18237,44878,3883,24441,18900,44854,18427,44762,19057,45042,45051,44865,44671,44767,45286,5410,17657,45072,44837,13922,30986,45517,18446,45567,17351,44849,17527,24412,17114,17703,18042,45515,18648,18894,44894,45346,14622,17835,44873,36472,5259,44851,18794,44848,16885,44745,31354,22509,13,44884,18279,44765,18650,16935,6875,44836,28530,44687,44531,44870,14402,44856,18430,32454,44869)
Unknown column 'np.person' in 'where clause'