Query erRor: --select concat(if(priority<10,'0',''),i.priority,'_',ll.db) ord_priority,i.*,zc.localitate ,ll.db ,trim(concat(l.name,' (',if(zc.country=13832,(select sign from zip_code where id=zc.county),(select sign from zip_code where id=zc.country)),'), ',l.addr)) addr ,l.firm,l.zip_code ,c.name c_name , c.anuar , ifnull((select if (45.328682432!=0 and 25.522879752!=0 and if(zccp.coord_lat=0,zc2.coord_lat,zccp.coord_lat)!=0 and if(zccp.coord_lon=0,zc2.coord_lon,zccp.coord_lon)!=0,(6367 * 2 * asin(least(1,sqrt(pow(sin((radians(if(zccp.coord_lat=0,zc2.coord_lat,zccp.coord_lat))-radians(45.328682432))/2),2) + cos(radians(45.328682432)) * cos(radians(if(zccp.coord_lat=0,zc2.coord_lat,zccp.coord_lat))) * pow(sin((radians(if(zccp.coord_lon=0,zc2.coord_lon,zccp.coord_lon))-radians(25.522879752))/2),2))))),100000) from zip_code zccp, zip_code zc2 where zccp.zip_code=zc2.id and zccp.cod=l.cod_postal limit 1),100000) proxkm ,it.value it_text from pu_inscriere i, zip_code zc, pu_location l, _LOCAL_CATEGORY c, pu_inscriere_text it, log_location ll where c.id=i.capitol and ll.id=l.id and zc.id=l.zip_code and l.id=i.location and it.inscriere=i.id and c.anuar in(19,20,21) and it.valuel like '%ELECTRICAL%' and it.valuel like '%MOTORS%' order by proxkm, priority, ll.db desc limit 1000--
Table './pu_yellow/log_location' is marked as crashed and last (automatic?) repair failed