I've been toying with this SQL for a few hours now, and running into an issue where MySQL CLI is returning "mydatabasename.a table does not exist" - I verified I am in fact using the correct database by previous tests and the USE statement. My guess is the query is faulty, but I am having a really tough time getting away from this error. Thanks for any ideas. 

```
SELECT a.tabl1, b.tabl2, c.tabl3
INTO OUTFILE 'H:/output/output.csv' 
fields TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' 
FROM a, b, c   
INNER JOIN a.tabl1 ON a.id = b.id
INNER JOIN b.tabl2 ON b.id = c.id
WHERE 
       (

   b.case_txt = 'case1' OR   
   b.case_txt = 'case2' OR
   b.case_txt = 'case3' OR
   )

AND 
c.address != ''
AND 
c.state = 'OR' 
AND 
date LIKE '%02/01/13%'; 

```