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 (44689,17755,5993,34194,18652,44687,6782,5259,44764,44765,24438,45180,4686,44685,17839,6862,19057,8753,45515,18981,45286,44768,44845,17527,17657,18301,43800,17092,18172,44835,45561,17335,18650,45516,44766,45517,17835,44674,44767,44855,4765,28530,44640,44851,18894,18279,44711,44858,18286,17771,17278,14622,16935,45042,17601,44865,44669,37057,9341,5410,18353,18719,17009,17556,44866,22509,45072,44531,31354,44745)
Unknown column 'np.person' in 'where clause'