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 (45286,17601,44640,43800,44856,45180,44866,45516,18279,24441,44745,18042,17527,18446,18353,17092,9341,44767,44849,17009,13988,14622,16935,17114,22509,44853,44870,13,18648,32454,17755,44845,45346,17335,44739,28530,17278,18981,37267,45567,18900,18996,18650,44674,17351,18430,45042,44768,44685,18427,17771,44878,44836,44869,44873,39676,5259,45072,44863,44711,17657,18237,44875,17492,17839,4765,44837,44762,44861,18301)
Unknown column 'np.person' in 'where clause'