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 (18650,18794,44762,45262,44863,44845,30135,6875,17703,13922,44835,44853,3883,10402,44851,5410,44531,45051,44669,18719,37057,18172,18572,18900,45567,44685,17848,5993,17278,44854,17351,28313,22509,44745,18894,44674,9341,44671,34194,17009,17839,17755,30986,17527,44861,24441,17771,13425,44869,16885,44865,17756,16935,45043,44739,24411,18996,17835,4686,44873,44687,18279,14622,44884,32454,6862,18286,4765,45515,5259)
Unknown column 'np.person' in 'where clause'