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 (18286,17527,5259,22509,18427,18652,44869,17904,28530,44739,13922,28313,45567,24412,44689,44851,44848,3883,16935,44687,5410,45229,17601,18353,45346,44762,24411,17092,24441,17771,18900,18719,44866,5388,44671,4686,45515,9341,17835,18172,45180,44858,45517,18042,4765,5993,45518,44875,6782,44878,18430,44745,44894,45277,44836,17114,44685,34194,18996,18650,18301,44837,18446,44870,30963,17556,45043,17351,32454,17657)
Unknown column 'np.person' in 'where clause'