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 (13922,44762,32454,19078,44854,18572,17114,18650,18353,9341,24411,18279,6875,44685,16935,18427,44775,17351,44531,17335,19057,44858,5388,16885,18430,45072,18286,17009,45177,17092,13,44849,37057,44894,18688,8753,18648,44768,44851,17904,44837,39676,18894,18719,44867,44845,18446,44764,28530,18185,6862,45229,44848,44836,44640,45518,44765,44873,17601,44671,4765,44855,44863,31354,44856,45421,28313,30135,13425,5259)
Unknown column 'np.person' in 'where clause'