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 (44858,3883,30986,44849,18688,13,45262,17492,18286,44837,44739,18996,17351,18650,18648,30135,44848,6862,5993,44687,13988,4765,17756,17755,44775,45277,44845,44835,17703,17839,18572,17657,3,8753,18279,44878,44855,37267,4686,24438,24441,18719,17114,44856,17278,6782,13425,44764,24412,45180,44853,44762,43800,17601,28313,18446,44745,45515,17556,6875,44766,44671,39676,22509,45421,18237,45561,17835,44669,44866)
Unknown column 'np.person' in 'where clause'