sql - No tables used? -


i've been working bit of code time now, , now, after tinkering, thought got work, gives me error

error number: 1096  no tables used  select * 

and code

select start.*, posts.did, count(posts.pid)                             akia_starting_posts start                             join posts                                 on posts.did = start.did                             join akia_users users                                 on users.username = start.username 

i'm pretty sure @ * start being used, heck talking about?? couldn't other code in file, since when take out bit of code, starts working.

try add backticks on sql string has word start on it. begin try use 1 table in question first like.

select 'start.*' akia_starting_posts 'start' 

and if works may incorporate in fullscale join 1 posted bacticks used.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -