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 (18427,17092,17981,18185,44764,45346,45277,45042,44894,44674,17601,13922,44870,44745,14622,44762,17904,28313,8753,17848,44873,45072,6862,18894,18172,45177,32454,17556,44865,44531,4765,5410,24441,10402,18279,18301,4686,22509,17835,17755,45561,37057,45180,45421,24412,44739,18794,45051,18353,19078,18237,17492,18981,44671,44845,44687,44837,17278,44868,34194,31354,45518,44640,13988,44836,44861,45229,24411,44858,5259)
Unknown column 'np.person' in 'where clause'