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 (18719,5993,37267,30135,28313,44775,24441,17657,17492,18237,13425,17601,44867,44853,44674,6862,45180,17009,44739,17237,44764,44745,32454,44873,44837,44640,44849,30963,17904,18996,9341,17527,45042,45072,28530,24412,45515,17092,44894,18572,44768,44835,44855,8753,14402,4686,44689,18301,16935,13922,19057,18286,44669,44531,6875,17335,43800,34194,3883,18427,17771,45051,18894,44878,44767,45518,3,5410,45346,17114)
Unknown column 'np.person' in 'where clause'