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 (24438,44873,44762,18279,22509,17981,45042,18900,44837,44768,32454,39676,44869,44851,44531,13425,45177,36472,17237,44849,17657,18301,44868,18446,17527,14622,18172,31354,18430,18719,17601,44845,44894,13,17703,44878,5259,19078,6862,44640,44848,45567,43800,45180,45517,44856,4765,17092,17839,44689,44764,45518,19057,45515,18237,44745,45043,44685,45229,18572,9341,5993,45516,44855,17556,30963,17492,18688,44853,44866)
Unknown column 'np.person' in 'where clause'