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 (44856,45346,45180,17601,43800,18719,44768,14402,44866,17835,18981,44853,18301,14622,18688,6609,17771,18042,44775,44868,45277,44865,30963,44837,31354,17009,18237,18648,16935,24441,28313,45567,17527,44855,6862,5388,44858,13425,32454,18353,45516,16885,44894,22509,17839,44848,44854,44869,30135,19057,45043,44861,44671,44689,17904,44849,44640,45286,44764,24412,18650,13988,18894,5259,18430,17556,44835,45561,17278,24411)
Unknown column 'np.person' in 'where clause'