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 (6875,18185,19057,13922,45567,45286,44685,43800,44674,5388,45518,17981,17492,18996,17278,44687,18042,18650,45180,44671,44848,44835,5259,44878,44711,3883,10402,44868,44531,18794,45042,44762,37057,44884,18286,18427,22509,44861,44845,45262,44870,45421,45346,44856,45517,18648,44768,17657,45072,44669,17527,18430,28313,18301,31354,17601,45561,44863,19078,5993,17756,17839,14622,18279,18353,44865,18719,44836,44739,28530)
Unknown column 'np.person' in 'where clause'