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 (44669,5388,45515,44775,17657,44835,37267,44762,28313,44873,17556,8753,44768,18981,44861,9341,44739,17839,44745,18900,44845,45421,45286,45051,13988,28530,45180,18648,45042,6875,44875,17703,4765,6862,22509,17278,17835,18688,14622,44674,44836,17771,18279,3,24438,44878,18301,44894,5993,32454,44849,17092,44865,45346,18719,44869,16885,34194,13425,17527,37057,31354,44853,45567,18172,30135,44867,44855,17351,45518)
Unknown column 'np.person' in 'where clause'