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 (19057,44687,13922,44739,43800,44868,44671,17601,18900,17237,45518,18172,18794,44858,44765,30963,24412,18279,44851,44849,44873,32454,17009,17657,18353,45286,44865,19078,44869,13,18446,6782,44640,17092,18650,9341,44878,44836,44837,18719,17351,5259,3883,34194,45177,5410,44856,17848,44867,17335,6862,17556,44685,17835,44855,16935,45567,44711,17771,44861,44762,24411,44531,17904,28313,44894,18996,22509,4765,44848)
Unknown column 'np.person' in 'where clause'