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 (45518,44689,44858,18719,45051,44531,19057,45516,44745,8753,24438,17601,45421,44863,5388,6875,45515,18894,13988,44873,6782,44711,44775,17237,44671,18237,16935,45229,18572,44851,4686,18996,44870,45262,44837,17848,28530,44685,43800,16885,44878,28313,45286,31354,44765,17657,37057,18286,44768,14622,10402,44687,18446,17839,45277,44836,6862,17755,5993,18042,44855,18301,18427,44853,44767,18172,44848,24412,44869,24441)
Unknown column 'np.person' in 'where clause'