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 (14402,45043,17237,13988,19078,17657,44768,44685,5388,44766,13922,44745,17703,6782,13425,28530,5993,5410,17351,17839,24438,18430,44775,18648,45180,36472,45421,31354,18900,44868,45229,45516,44836,5259,44669,18572,9341,44861,44764,39676,16935,4686,44674,44848,43800,44866,28313,45561,24411,45177,44531,24441,44884,18652,18042,18172,45051,44687,17835,18446,17601,17492,18286,30963,6862,17092,17009,45277,17981,45567)
Unknown column 'np.person' in 'where clause'