I am trying to make pagination in PHP using SQL, the pagination logic is not the problem or anything, the problem is that I am not getting my table and rows printed, I decided to echo the sql sentence and try it directly into the sql program, and it gives me a syntax error which I don't understand because it seems just as good as the examples I have seen.
The thing is that I don't get why is that error I'm getting and why is it wrong or why the LIMIT is not getting accepted.
This is the sql sentence I'm echoing, (seems pretty good to me):
This is the error I'm getting (and which I'm guessing is the problem why my table isnt printing):