Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (36472,30963,45516,30986,44884,44835,37267,39676,18286,44739,18430,17835,45421,45262,44878,45042,17092,4686,44863,17904,6862,10402,44836,44671,44858,44851,17657,24412,5410,44640,45518,17556,24411,18719,44855,17771,18279,17278,30135,44768,44849,45229,9341,18042,17703,17755,44674,32454,13,17601,34194,44687,17009,44764,45286,44894,6609,24438,44765,5388,44762,28313,31354,18648,18794,37057,22509,44689,44669,13922)
Unknown column 'np.person' in 'where clause'