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 (5410,44845,14622,44884,18996,18446,24411,44868,17335,8753,4765,18353,17092,9341,6609,45072,22509,44849,17278,44669,13425,45180,31354,44856,44869,17904,44853,44768,44764,44762,44531,45286,30963,44836,44775,18894,18650,19078,17703,6782,18279,44685,17527,45229,18688,18719,16935,18042,18427,5993,44766,17114,36472,44640,44867,5388,32454,17492,44765,44865,28530,18286,30986,6875,45518,10402,44875,45421,17657,45277)
Unknown column 'np.person' in 'where clause'