Unable to connect to database !
1064 <- 오류번호
select
STRAIGHT_JOIN
A.*,
B.category as category,
B.camp_confirm_regi as camp_confirm_regi,
B.camp_confirm_app as camp_confirm_app,
B.camp_best as camp_best,
B.title as title,
B.short_comment as short_comment,
B.camp_app_per,
B.camp_per,
B.camp_app_start,
B.camp_app_end,
B.camp_present,
B.camp_regist_start,
B.camp_regist_end,
B.camp_best,
B.img_0 as img_0,
B.img_1 as img_1,
B.img_2 as img_2,
B.img_3 as img_3,
B.img_4 as img_4,
B.img_5 as img_5,
B.img_6 as img_6,
B.img_7 as img_7,
B.img_8 as img_8,
B.img_9 as img_9,
B.img_10 as img_10,
B.facebook_url as facebook_url,
B.instagram_url as instagram_url,
B.youtube_url as youtube_url,
B.tweeter_url as tweeter_url,
B.etc_blog1_url as etc_blog1_url,
B.etc_blog2_url as etc_blog2_url
from
info_adblog_review as A
left join
info_upso2_links as B
on
A.links_number = B.number
where
1 = 1
and
A.blog_review_url != ''
AND
B.number is not null
and
B.camp_confirm_app = 'y'
and
B.camp_regist_start <= curdate()
order by
A.number desc
limit
-2, 12
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-2, 12' at line 59
Warning: happy_mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
/hard/hosting4/adblog/www/inc/lib.php on line
25005